card lists
Discuss anything concerning this site and its contents
Moderator: CCGHQ Admins
card lists
by Incantus » 01 Nov 2008, 14:21
Does anyone know where i can find a list of each expansion along with the cards in that expansion? Preferably in an easy to parse format (comma or tab separated)?
Re: card lists
by Snacko » 01 Nov 2008, 15:25
You can do either:
1) parse an existing mwsBase or a csv dump of it
2) parse csv card base of deckbuilder / card generator which is a preprocessed GH mwsBase
3) parse directly from gatherer
1) parse an existing mwsBase or a csv dump of it
2) parse csv card base of deckbuilder / card generator which is a preprocessed GH mwsBase
3) parse directly from gatherer
Re: card lists
by Incantus » 01 Nov 2008, 17:24
Yeah, i ended up writing a screenscraper for gatherer. One issue is that the expansion name in the text export is only the most recent expansion, and i would like to get card lists for each expansion. But a quick python fixed that
But for future reference, where do i get csv card base of deckbuilder (I can't export from MWS since I don't have windows)
But for future reference, where do i get csv card base of deckbuilder (I can't export from MWS since I don't have windows)
Re: card lists
by Snacko » 01 Nov 2008, 17:40
It's included in the main package.
Most of the time there isn't a csv base only download, it's located data/cards.csv.
Just to let you know MWS built-in export to csv doesn't work, however you can use cdsExplorer via wine to export any mws sets / cards masterbase.
You can easily get per expansion text spoilers / or any other formats from gatherer, however if you want to have all the info like artist, flavor etc you need to spider each card separately (that's how I do to get all the translations up to date).
Most of the time there isn't a csv base only download, it's located data/cards.csv.
Just to let you know MWS built-in export to csv doesn't work, however you can use cdsExplorer via wine to export any mws sets / cards masterbase.
You can easily get per expansion text spoilers / or any other formats from gatherer, however if you want to have all the info like artist, flavor etc you need to spider each card separately (that's how I do to get all the translations up to date).
Re: card lists
by frwololo » 18 Feb 2009, 00:56
sorry to revive an old thread, but I have a script that might be of interest for that.
It also happens to download card pictures.
I didn't create it (original creator's name in the file), but slightly modified it (in a bad way. I'd say I un-improved it). Anyone with python experience can probably change it to fit their needs.
http://code.google.com/p/wagic/source/b ... builder.py
http://code.google.com/p/wagic/source/b ... s/gatherer
It also happens to download card pictures.
I didn't create it (original creator's name in the file), but slightly modified it (in a bad way. I'd say I un-improved it). Anyone with python experience can probably change it to fit their needs.
http://code.google.com/p/wagic/source/b ... builder.py
http://code.google.com/p/wagic/source/b ... s/gatherer
Re: card lists
by messels » 20 Feb 2009, 23:13
hi, i was wondering if you'd be willing to share your scraper? i'm trying to put together a db of all the cards for easy download--so everyone can develop mtg-solutions without having to go through all the riga-ma-roll every time. i have all the card names, etc but as you mentioned to get artist name, etc you have to do it card-by-card. i've not written any scrapers so haven't a clue to start and would love the extra help.
lmk if this can be arranged.
first post here so big thanks for all the HQ scans. AMAAAAZING work y'all.
lmk if this can be arranged.
first post here so big thanks for all the HQ scans. AMAAAAZING work y'all.
- messels
- Posts: 2
- Joined: 20 Feb 2009, 21:56
- Has thanked: 0 time
- Been thanked: 0 time
Re: card lists
by messels » 20 Feb 2009, 23:15
OKAY, i see that i'm a total dof for asking before finishing to read the thread. my bad.
- messels
- Posts: 2
- Joined: 20 Feb 2009, 21:56
- Has thanked: 0 time
- Been thanked: 0 time
Re: card lists
by Huggybaby » 21 Feb 2009, 03:15
lol Glad you got it sorted, and welcome to the forum.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: card lists
by frwololo » 24 May 2009, 03:26
Anyone would have a script for the latest Gatherer site ? I saw that they didn't update it with Alara Reborn...
Edit: Nevermind, created my own script
Edit: Nevermind, created my own script
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 25 guests