fitnr / everylotbot Goto Github PK
View Code? Open in Web Editor NEWCreate Twitter bots that post Google Streetview pictures of a property database
License: GNU General Public License v3.0
Create Twitter bots that post Google Streetview pictures of a property database
License: GNU General Public License v3.0
The everylot
command is returning the following error:
Traceback (most recent call last):
File "/Users/johnricco/anaconda/bin/everylot", line 9, in
load_entry_point('everylot==0.3.0', 'console_scripts', 'everylot')()
File "build/bdist.macosx-10.5-x86_64/egg/everylot/bot.py", line 45, in main
File "build/bdist.macosx-10.5-x86_64/egg/everylot/everylot.py", line 68, in init
TypeError: zip argument #2 must support iteration
Which is pointing at this code:
self.lot = dict(zip(keys, curs.fetchone()))
Something is up with the fetchone()
method. Doesn't appear to be a problem with my table, which look like this:
The NYC Department of City Planning's Zoning and Land Use App contains composable URLs for every tax lot, and it would be rad to append a hyperlink to each everylotnyc tweet.
The format is:
https://zola.planning.nyc.gov/lot/{borocode}/{block}/{lot}
These are non-zero-padded numbers pulled directly from MapPLUTO. I would do a pull request but I am not clear on whether these three attributes exist in your SQLite database. (I assume you are using MapPLUTO or DTM, but not sure if you kept all of the attributes)
Anyway, let me know if you're interested. If not, no biggie, and thanks for setting up this awesome tweet bot!
The following command:
everylot everylotphilly lots.db --config bots.yaml
returns the following error:
ValueError: Incomplete config. Missing ['consumer_key', 'consumer_secret', 'key', 'secret']
This is not strictly a .yaml issue; I get the same error with a .json file. Nor is it the result of a misplaced or empty file, as these issues return different errors.
One possibly useful piece of information: my account name and app name are the same ("everylotphilly").
In the readme file, it would be a good idea to let the user know that they need to enable their Google Maps API key for geocoding. Without this step, the bot always reverts to the database coordinates. At least in the case of Philly's parcel database, these are less accurate.
How lovely
Problem: The EveryLot image request naively assumes imagery will be available, returning as valid either a valid SV image or the default "No imagery available" image in the post
Proposed Solution: Add a call to the SV metadata API to the object creation so that if it returns a non-OK status, the bot has a choice to discard that and go grab another one
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.