mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-08-19 07:59:33 -05:00
Remove card exemption (#57)
* Remove card exemption Mistakenly added thinking it was not a valid card.
This commit is contained in:
@@ -826,7 +826,7 @@ def scrape_mtgs_images(url='http://www.mtgsalvation.com/spoilers/183-hour-of-dev
|
||||
cards = {}
|
||||
cardstree = tree.xpath('//*[contains(@class, "log-card")]')
|
||||
for child in cardstree:
|
||||
if child.text == 'Reason' or child.text in exemptlist:
|
||||
if child.text in exemptlist:
|
||||
continue
|
||||
childurl = mtgscardurl + child.attrib['data-card-id'] + '-' + child.text.replace(' ','-').replace("'","").replace(',','').replace('-//','')
|
||||
cardpage = requests.get(childurl)
|
||||
|
||||
Reference in New Issue
Block a user