Recommend
1 
 Thumb up
 Hide
3 Posts

BoardGameGeek» Forums » Gaming Related » General Gaming

Subject: Script to browse virtual flea market geeklist rss

Your Tags: Add tags
Popular Tags: [View All]
Noel Llopis
Spain
flag msg tools
badge
Avatar
Keeping track of which items are available and which items have been sold in a virtual flea market geeklist is a pain as soon as you have several pages.

I created a script (inspired by the one from the BGGCon VFM) that runs periodically server side, figures out which items are still available, and creates a simple reference page back to the geeklist.

Here's an example with the San Diego VFM

It's open source, so feel free to modify it to suit your needs, or make improvements and submit them back to the master branch:
https://github.com/llopis/bgg-vfm
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
David Etherton
Scotland
Edinburgh
Midlothian
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
If you can'd find a dollar/pound/euro sign, you might want to fall back on something like [0-9]+\.[0-9][0-9]

I noticed a few prices were blank that were obvious once I clicked on the entry.

m = re.findall('([0-9]+\.[0-9][0-9])', description, re.MULTILINE)
if m:
return m[len(m)-1]


Don't feel like setting up a server just to test that

-Dave
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Noel Llopis
Spain
flag msg tools
badge
Avatar
Changed added. Thanks!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.