How I update my Twitter profile automatically using Python.

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • twitter-profile-updater

    A Python bot that updates your Twitter profile with images from NASA's Astronomy Picture of the Day API.

  • The are three libraries that you will need. Tweepy for more easily use of the Twitter API, requests to obtain the information from the NASA API through an HTTP request, python-dotenv, which I used to store and access my private keys without exposing them publicly. You can manually install these libraries or if you cloned my Github repository, install through the requirements.txt file.

  • twurl

    OAuth-enabled curl for the Twitter API

  • To access the Twitter API, you must go to Twitter's developers portal. Make sure to log into the portal with the same account you want your banner to change automatically. I'll not cover step-by-step what you need to do to obtain access to the Twitter API, but here is guide. You'll need to apply for Elevated Access to the API (step four) because the request to update one's profile is part of the v1.1 endpoints. It is not difficult to obtain elevated access. You'll have to explain how you will use the API so they know you are following their terms of conduct.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts