syllant / bggcli Goto Github PK
View Code? Open in Web Editor NEWCommand Line Interface for BoardGameGeek.com
Command Line Interface for BoardGameGeek.com
The bggcli export tool works flawlessly.
The bggcli import tool works fails when attempting to access elements on the new board game page interface. I'm including a stack trace here:
[bggcli] Importing games for '<account_name>' account...
[bggcli] Authenticating... [done]
[bggcli] Importing 108 games...
[bggcli] [1/108] Custom Heroes... [bggcli] ERROR: Unexpected error while controlling the UI!
Either the web pages have changed and bggcli must be updated, or the site is down for maintenance.
Cause: Message: Unable to locate element: (//a[contains(@onclick, 'CE_ModuleAddItem')])[last()]
Traceback (most recent call last):
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/util/csvreader.py", line 60, in iterate
callback(row)
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/commands/collection_import.py", line 50, in <lambda>
csv_reader.iterate(lambda row: game_page.update(row))
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/bggcli/ui/gamepage.py", line 102, in update
"(//a[contains(@onclick, 'CE_ModuleAddItem')])[last()]").click()
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 365, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 843, in find_element
'value': value})['value']
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 308, in execute
self.error_handler.check_response(response)
File "/Users/andymatthews/.virtualenvs/bgg/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
For reference here's the BGG page for the game being added (Custom Heroes):
https://boardgamegeek.com/boardgame/223049/custom-heroes
I am moving my collection data from one account to another. The export worked fine, but the import failed with the following error:
[bggcli] Importing games for '********' account...
[bggcli] Authenticating... [done]
[bggcli] Importing 153 games...
[bggcli] [1/153] 101.1... (already in collection)[bggcli] ERROR: Unexpected error while controlling the UI!
Either the web pages have changed and bggcli must be updated, or the site is down for maintenance.
Cause: Message:
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10659)
at FirefoxDriver.prototype.findElement (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10668)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12534)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12539)
at DelayedCommand.prototype.execute/< (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12481)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/bggcli/util/csvreader.py", line 60, in iterate
callback(row)
File "/usr/local/lib/python2.7/dist-packages/bggcli/commands/collection_import.py", line 50, in <lambda>
csv_reader.iterate(lambda row: game_page.update(row))
File "/usr/local/lib/python2.7/dist-packages/bggcli/ui/gamepage.py", line 111, in update
getattr(self, "fill_%s" % key)(value)
File "/usr/local/lib/python2.7/dist-packages/bggcli/ui/gamepage.py", line 53, in _wrapper
(By.XPATH, "//div[@class='select-free'][contains(@id, 'editversion')]")))
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
TimeoutException: Message:
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10659)
at FirefoxDriver.prototype.findElement (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/driver-component.js:10668)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12534)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12539)
at DelayedCommand.prototype.execute/< (file:///tmp/tmp1rmw0x/extensions/[email protected]/components/command-processor.js:12481)
[bggcli] Close webdriver 'collection-import'
Does importing still work for you? (As in, did BGG change their page to break the tool? Or is it something on my end?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.