Code Monkey home page Code Monkey logo

cardcollector's People

Contributors

arabovs avatar kdichev avatar mitky avatar

Watchers

 avatar

cardcollector's Issues

hosting images

Could you please suggest a way to host images, plan is to download all the ~130 medium res image and store them so where

integrate hs metadata

see be metadata file and use it to integrate real values in the database not just some random types like 1...

fix yugi py bug

Inserted 1945
Traceback (most recent call last):
File "C:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\YugiohTCG.py", line 97, in
cardSearch(url)
File "C:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\YugiohTCG.py", line 42, in cardSearch
set_id = set_codes[1]
IndexError: list index out of range

mtg/be handle fractions, None and 0's

gql.transport.exceptions.TransportQueryError: {'extensions': {'code': 'parse-failed', 'path': '$.selectionSet.insert_card_details.args.objects[53].cost'}, 'message': 'The value 0.5 lies outside the bounds or is not an integer. Maybe it is a float, or is there integer overflow?'}

create structured pages per game

"/" page should show links to all games
"/[tgc]" should render current index page with tgc preselected
"/[tcg]/[id]" should render a card from a preselected game

tcg filter should pre-select tgc from url

be/mtg find a way to better handle stupid strings in float attack and defense

Traceback (most recent call last):
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\MtgTCG.py", line 160, in
getScryfallApiBulkOracle(URL_API_BULK)
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\MtgTCG.py", line 126, in getScryfallApiBulkOracle
retryConnection(bulk_api_uri)
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\MtgTCG.py", line 156, in retryConnection
insertMtgToGQL(cards)
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\MtgTCG.py", line 111, in insertMtgToGQL
gql_connector.gqlInsertCards(list(bulk.values()))
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\etc\postgre\GQL.py", line 125, in gqlInsertCards
result = client.execute(query, variable_values=variables)
File "C:\Users\arabo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gql\client.py", line 403, in execute
return self.execute_sync(
File "C:\Users\arabo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gql\client.py", line 221, in execute_sync
return session.execute(
File "C:\Users\arabo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gql\client.py", line 860, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'extensions': {'code': 'parse-failed', 'path': '$.selectionSet.insert_card_details.args.objects[472].cost'}, 'message': 'The value 0.5 lies outside the bounds or is not an integer. Maybe it is a float, or is there integer overflow?'}

scryfall block calls after 1k

...
Number 9271 : https://api.scryfall.com/cards/ymid/37
Number 9272 : https://api.scryfall.com/cards/ymid/38
Traceback (most recent call last):
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\MtgTCG.py", line 115, in
cardSearch(getAllMagicLinks())
File "c:\Users\arabo\Coding\lotr-tcg-scrapper\apps\be\src\MtgTCG.py", line 29, in cardSearch
card = requests.get(url).json()
File "C:\Users\arabo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.