RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Has anyone tried scraping IGDB with Skyscraper recently? My api key is getting rejected

    Scheduled Pinned Locked Moved Help and Support
    skyscraper
    2 Posts 2 Posters 623 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brimby
      last edited by

      I'm trying to scrape igdb, but it keeps rejecting my api key. I'm pasting the key directly in (not trying to type it out). Here is my command line entry:

      /opt/retropie/supplementary/skyscraper/Skyscraper --unattend --skipped -g /home/pi/.emulationstation/gamelists/n64 -o /home/pi/.emulationstation/downloaded_media/n64 -p n64 -s igdb -u MYPASTEDAPIKEY --videos --nobrackets

      Does anything look wrong with that line? The error message is: "The key you provided with either the '-u [key]' command line option or the 'userCreds="[key]" variable to config.ini does not seem to work. Now quitting..."

      I'm on version 2.9.5 of Skyscraper

      Update: I just tried generating a new key, but that one didn't work either.

      1 Reply Last reply Reply Quote 0
      • LolonoisL
        Lolonois
        last edited by Lolonois

        Same error over here. Skyscraper 2.9.5. With igdb API-Key.

        Adding --verbosity 3 adds no extra details.

        Just to make sure your API-key is right, try:

        curl 'https://api-endpoint.igdb.com/games' -H 'user-key: <your_key_here>' --> should return an authentication failure AND

        curl 'https://api-v3.igdb.com/games' -H 'user-key: <your_key_here>' --> should give you a JSON formatted array of ten records.

        So the URL changed from api-endpoint.igdb.com to api-v3.igdb.com.

        By the time I will file a PR at Github. In the meantime you can help yourself:

        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper depends
        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper sources
        

        Do edits in ~/RetroPie-Setup/tmp/build/skyscraper/src/igdb.cpp: The values of the variables baseUrl and searchUrlPre should reflect the new URL.

        Then:

        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper get_opts
        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper get_bins
        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper build
        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper install
        

        Clean (optional):

        sudo ~/RetroPie-Setup/retropie_packages.sh skyscraper clean
        

        Run Skyscraper again as in your original post. It should work then.

        HTH

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.