Jump to content
LaunchBox Community Forums

How do you scrape data from TheGamesDB.net?


Recommended Posts

Apologies if this is the wrong place to post this, but I'm just wondering if anyone can help shed light on this.

I'm trying to compile large amounts of data across hundreds of games (# of Players, Age Rating, Genre, etc.) and I have found that TheGamesBD.net is a good source for this info.  What I'm trying to learn now, is how to scape the data from this site to have it populate into a Google Sheet.  I know LaunchBox scrapes data from here so perhaps some of the code is similar?

Any tips would be greatly appreciated!

 

UPDATE: Here is where I'm at so far, I have been able to display:

Players:
Co-op:
Genres:
Release Date:
Developer:
Publisher:

 

By using the code: =importxml(A1,"//span[@class='grey']")

"A1" being a cell with the URL of the game I'm interested in. Still trying to figure out how to get the actual values for those categories to populate.

Edited by ZedSpot
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...