Skip to content

Web scraping tool for collection of gleam.io giveaway links from twitter and reddit

License

Notifications You must be signed in to change notification settings

EatEmAll/gleam.io-giveaway-url-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gleam-giveaway-url-fetcher

Description

This is a tool for collection of giveaway links on the gleam.io platform from twitter and reddit (using tweepy and praw modules respectively) as well as for filtering out giveaways that have ended or are unavailable (using Selenium webdriver).

All links are saved in urls.json.

Requirements

  • Python 3
  • Modules: tweepy, praw, Selenium Python Bindings, BeautifulSoup
  • phantomjs Note: If you're usiing windows you'll need to append the executable's path to the value of Path in Environment Variables.
  • Twitter API access (for tweepy). You'll need to generate your own Consumer Key and Consumer Secret and add them to the config.ini file.

Usage

available operations:

  • search - search for new giveaways using the selected source.

gleam_url_fetcher -o search -s twitter\reddit -kw gleam giveaway -mt number_of_tweets -mr number_of_reddit_submissions -tc number_of_threads

  • utd - update title and description for each link.

gleam_url_fetcher -o utd -tc number_of_threads

  • ukeys - remove duplicate links.

gleam_url_fetcher -o ukeys -tc number_of_threads

  • ru - remove unavailable giveaways.

gleam_url_fetcher -o ru -tc number_of_threads

  • print - print all giveaways in database.

gleam_url_fetcher -o print

About

Web scraping tool for collection of gleam.io giveaway links from twitter and reddit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages