Giter VIP home page Giter VIP logo

scrap-western-currency-and-tweet's Introduction

Scrap Western Union Currency

Twitter Bot

GitHub followers

Python License contributions welcome Twitter

I followed this documentation, How to make a twitter bot for free in order to configure the lambda service that make the post of the tweet.

In the other hand, the main.py file is responsible for scraping the site, write the information into a file located at S3 Bucket, and call the AWS API Gateway. So, this module is executed on replit.com and stay alive thanks to uptimerobot.com. According to this, if the AWS API is triggered, the AWS Lambda function will be executed and the tweet will be posted.

Stack of Libraries

  • Atexit: It is executed, in case of the interpreter stop (built-in library).
  • Boto3: Read, Write and Update the information on the bucket.
  • Httpx: Make a GET request to an AWS API Gateway in order to make the tweet.
  • Selenium: Scrap the site.
  • Rocketry: Schedule the task to make all the process.
  • Tweepy: Handle the twitter api. So, It post the tweet.

Stack of Technologies

  • Replit: Hold the project online.
  • Uptimerobot: Keep the project alive using the replit url, previously generated with Flask.
  • AWS Lambda: Handle the possibility of post the tweet, reading the bucket for updated information.
  • AWS S3: Store the csv file with the scraped information.
  • AWS API Gateway: Trigger that call de AWS Lambda function.

Illustrations of the flow

scrap-western-currency-and-twee-page1

scrap-western-currency-and-twee-page2

Examples

Posting a graphic

image

Posting a tweet

image

Posting a tweet with a different text

image

scrap-western-currency-and-tweet's People

Contributors

alfareiza avatar

Watchers

 avatar

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.