GithubHelp home page GithubHelp logo

fitnr / everylotbot Goto Github PK

View Code? Open in Web Editor NEW
80.0 7.0 29.0 32 KB

Create Twitter bots that post Google Streetview pictures of a property database

License: GNU General Public License v3.0

Makefile 20.07% Python 79.93%
twitter-bot streetview

everylotbot's People

Contributors

eli173 avatar fitnr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

everylotbot's Issues

Register Google Maps API key for geocoding

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.

EveryLot object unaware of SVAPI request validity

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

Append ZoLa Link to Status

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!

Issue with YAML/JSON file: "incomplete config"

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").

"TypeError: zip argument #2 must support iteration"

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:

image

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.