Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCGP fetch data #553

Open
miguelfs opened this issue Nov 1, 2024 · 16 comments
Open

TCGP fetch data #553

miguelfs opened this issue Nov 1, 2024 · 16 comments

Comments

@miguelfs
Copy link

miguelfs commented Nov 1, 2024

Hi, I wonder if there is an easy way of fetching data from the +- 250 cards from new TCGP mobile game.

Since it is a small set, would be useful to have a quick way of getting them in a single query/endpoint/file.

@Xernisfy
Copy link

Xernisfy commented Nov 3, 2024

That would be great! Are there any plans on cataloguing the Genetic Apex set?

@Toukassay
Copy link

Seems like a lot could be fetch here maybe : https://bulbapedia.bulbagarden.net/wiki/Genetic_Apex_(TCG_Pocket)

@miguelfs
Copy link
Author

miguelfs commented Nov 5, 2024

@Toukassay thanks! it seems all necessary data is there.

There are some libs to fetch data from Bulbapedia, but I don't think they are "tcg-oriented": https://github.com/search?q=bulbapedia&type=repositories

I could spend some hours making a tool to access the available metadata, I'll let you know about updates.
https://github.com/miguelfs/pkmn_tcgp_bulba

@Toukassay
Copy link

@Toukassay thanks! it seems all necessary data is there.

There are some libs to fetch data from Bulbapedia, but I don't think they are "tcg-oriented": https://github.com/search?q=bulbapedia&type=repositories

I could spend some hours making a tool to access the available metadata, I'll let you know about updates. https://github.com/miguelfs/pkmn_tcgp_bulba

Haven't tried it but in case you missed it : https://github.com/TomasSindermanMuszkat/Bulbapedia-Parser

@Xernisfy
Copy link

Xernisfy commented Nov 5, 2024

Hope this helps, feel free to let me know if I can improve it.

@Toukassay
Copy link

Hope this helps, feel free to let me know if I can improve it.

Wow, quite impressive dude ;)
I'm not used to this repo, how does they handle the images then? I see that all yours are default one I think?

@Xernisfy
Copy link

Xernisfy commented Nov 5, 2024

Thanks, always happy to help!
I'm not sure about the images, also new here 👋
They're probably just laying around on the server where the API is hosted.
In the images object I just followed the scheme from all the other ones 😅
Someone let me know where to put them and I can give them a zip with all the pngs.

Here's the scraping tool I build for this: https://github.com/Xernisfy/pokemon-tcg-importer

@Toukassay
Copy link

Thanks, always happy to help! I'm not sure about the images, also new here 👋 They're probably just laying around on the server where the API is hosted. In the images object I just followed the scheme from all the other ones 😅 Someone let me know where to put them and I can give them a zip with all the pngs.

Here's the scraping tool I build for this: https://github.com/Xernisfy/pokemon-tcg-importer

So cool, I didn't know there was an API, I was trying to scrape the DOM :D
https://bulbapedia.bulbagarden.net/w/api.php

@Xernisfy
Copy link

Xernisfy commented Nov 6, 2024

Me too, I stumbled over this when googling for a neater solution: https://www.mediawiki.org/wiki/API:Get_the_contents_of_a_page#Example_2

@miguelfs
Copy link
Author

miguelfs commented Nov 7, 2024

@Xernisfy @Toukassay is there any project you 2 would be interested in building? Like an exploratory analysis?

@Toukassay
Copy link

I might try to build something for players to help them sharing friend's codes and exchanging cards 😊

@Xernisfy
Copy link

Xernisfy commented Nov 7, 2024

I was thinking about a deck-building helper.
That's why I needed an API to fetch the cards in the first place 😉
Not sure about the specifics though...

Data analysis sounds fun!
Got something in mind? Like how likely cards are going to win?

@itsjavi
Copy link

itsjavi commented Nov 9, 2024

I am looking forward for this. I would like to integrate a TCGP card dex tracker on the PokePC project at some point.

Btw the link to your Discord server seems invalid https://discord.com/invite/dpsTCvg

@itsjavi
Copy link

itsjavi commented Nov 18, 2024

@Nicolas-PredictaLab their last commit here is from last week, so it seems maintained.

@Toukassay
Copy link

@Nicolas-PredictaLab their last commit here is from last week, so it seems maintained.

Oh yeah my bad, was assuming he push new release each time. You are right.
🤞

@seondal
Copy link

seondal commented Dec 23, 2024

I think TCGP should create a new API that is different from existing TCG systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants