Skip to content

Instantly share code, notes, and snippets.

View BoukorrasLuc's full-sized avatar

fb1cc8d3 BoukorrasLuc

View GitHub Profile
@BoukorrasLuc
BoukorrasLuc / pricecharting.py
Created February 14, 2023 23:26 — forked from bcantoni/pricecharting.py
Barcode scanning used video games
#!/usr/bin/env python
'''
By just doing a HEAD operation, we can look at the location returned and extract game system and title:
$ curl -i --head "https://www.pricecharting.com/search-products?type=videogames&q=096427015055"
HTTP/2 307
content-type: text/html; charset=utf-8
location: https://www.pricecharting.com/game/nintendo-ds/cooking-mama-2-dinner-with-friends?q=096427015055
x-appengine-log-flush-count: 0
x-cloud-trace-context: 95201b263e270f913954a519333070f4