Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.24 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.24 KB

Every Place Bot

@everyusplace is a twitter bot that tweets out masked aerial images of geographies alt text

Description

This bot tweets out masked aerial imagery of US Census places using shapes from IPUMS NHGIS.

Getting Started

This bot looks for a shapefile named US_place_2020.shp which can be obtained from NHGIS. You can also swap out this file for another file but some things might break depending on the names of the attributes of the file.

You will also need to create a secrets.py and populate it with twitter developer credentials. Like this:

consumer_key = "YOUR API KEY HERE"
consumer_secret="YOUR API SECRET HERE"
access_token="YOUR ACCESS TOKEN HERE"
access_token_secret="YOUR ACCESS TOKEN SECRET HERE"

Dependencies

  • python 3.9
  • geopandas
  • rasterio
  • us
  • rasterio
  • xyzservices
  • requests
  • tweepy

Executing program

python bot.py

Authors

Philip Nelson @blu3r4d0n

Acknowledgments

The inspiration for this bot was @everytract by @fitnr.