All Projects → melizeche → dolarPy

melizeche / dolarPy

Licence: Apache-2.0 License
Checks USD/PYG exchange rate from several sites, with a calculator, RESTful API and a twitter bot

Programming Languages

HTML
75241 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to dolarPy

Jobfunnel
Scrape job websites into a single spreadsheet with no duplicates.
Stars: ✭ 1,528 (+3295.56%)
Mutual labels:  scraper, beautifulsoup4
quoters
📝 Random quotes generator package. Available on npm and PyPi
Stars: ✭ 17 (-62.22%)
Mutual labels:  scraper, beautifulsoup4
CourseCake
By serving course 📚 data that is more "edible" 🍰 for developers, we hope CourseCake offers a smooth approach to build useful tools for students.
Stars: ✭ 21 (-53.33%)
Mutual labels:  scraper, beautifulsoup4
wacket
Racket to WebAssembly "compiler".
Stars: ✭ 23 (-48.89%)
Mutual labels:  hacktoberfest2020
hs-lr-midi-schwurbler
Happy Shooting Community - DIY Lightroom Hardware Controller
Stars: ✭ 16 (-64.44%)
Mutual labels:  hacktoberfest2020
credit-tracker
Credit Tracker WordPress plugin
Stars: ✭ 15 (-66.67%)
Mutual labels:  hacktoberfest2020
algo-book
The algo book that contains various algorithms in 4 different languages
Stars: ✭ 17 (-62.22%)
Mutual labels:  hacktoberfest2020
naver movie scraper
네이버 영화 정보 및 사용자 작성 영화평/평점 데이터 수집기
Stars: ✭ 27 (-40%)
Mutual labels:  scraper
saddy-graphics-engine-2d
Saddy is an open-source crossplatform 2D graphic engine, based on OpenGL, which can be used for creating 2D games. like platformers or RPGs.
Stars: ✭ 51 (+13.33%)
Mutual labels:  hacktoberfest2020
Hacktoberfest2020
Repository for first timers to get started in Open Source Contributions
Stars: ✭ 44 (-2.22%)
Mutual labels:  hacktoberfest2020
TorScrapper
A Scraper made 100% in Python using BeautifulSoup and Tor. It can be used to scrape both normal and onion links. Happy Scraping :)
Stars: ✭ 24 (-46.67%)
Mutual labels:  scraper
MediumScraper
Scraping articles of medium and providing audio versions 📑 to 🔊 using django
Stars: ✭ 12 (-73.33%)
Mutual labels:  beautifulsoup4
the-duck-gallery
theduckgallery.zenika.com
Stars: ✭ 21 (-53.33%)
Mutual labels:  hacktoberfest2020
mongodb-scraper
Scraps for publicly accessible MongoDB instances and dumps user passwords
Stars: ✭ 33 (-26.67%)
Mutual labels:  scraper
RPICovidScraper
scraper for Rensselaer Polytechnic Institute (RPI)'s Covid Dashboard
Stars: ✭ 12 (-73.33%)
Mutual labels:  scraper
Awesome-Scripts
A collection of awesome scripts from developers around the globe.
Stars: ✭ 135 (+200%)
Mutual labels:  hacktoberfest2020
invmovieconcept1
True Cross platform UI design featuring complex scroll based animations powered by flutter
Stars: ✭ 55 (+22.22%)
Mutual labels:  hacktoberfest2020
ui
✏️ Free open source Web User Interface for OhMyForm ⛺
Stars: ✭ 40 (-11.11%)
Mutual labels:  hacktoberfest2020
Whatsapp-Group-Contacts-Scraper
How to scrap whatsapp group contacts from https://web.whatsapp.com/
Stars: ✭ 65 (+44.44%)
Mutual labels:  scraper
ttc subway times
A scraper to grab and publish TTC subway arrival times.
Stars: ✭ 40 (-11.11%)
Mutual labels:  scraper

dolarPy

Checks USD/PYG exchange rate from several sites, with a calculator, RESTful API and a twitter bot

  • Scraper: Checks USD/PYG exchange rate from several sites every 10 minutes, saves the info in a json file
  • Webservice: Flask app to serve the API and display the main website with the calculator
  • TwitterBot: Reads the webservice output and tweet it(in a human readable format)

DEMO/Webservice

http://dolar.melizeche.com/api/1.0/

Twitter Bot

https://twitter.com/DolarPy

Mobile

API wrappers

Documentation in progress

Requirements

  • Python 2.7+ or 3.5+
  • BeautifulSoup4
  • Flask
  • Tweepy

Install

git clone [email protected]:melizeche/dolarPy.git
cd dolarPy
python3 -m venv env
# if venv module is not installed install with `sudo apt install python3-venv`
source env/bin/activate
pip install -r requirements.txt
crontab -e (add coti.py) // See example below
python cotiapp.py

On macOS High Sierra with python3 (also most linux distros)

# pip3 is installed with Python3
pip3 install virtualenv
# creating the virtualenv
virtualenv -p python3 env
# activate the virtualenv:
source env/bin/activate
pip3 install -r requirements.txt
# and the run
# if you need to deactivate the virtualenv:
deactivate

Crontab format and example

MIN HOUR DAYofMONTH MONTH DAYofWEEK PYTHONPATH SCRIPT

So for check/update the exchange rate every 10 minutes between 6am and 8pm on weekdays

*/10 6-20 * * 1-5 /apps/dolarPy/env/bin/python /apps/dolarPy/coti.py

And for tweet the exchange rate at 8am, 12pm and 6pm on weekdays

0 8,12,18 * * 1-5 /apps/dolarPy/env/bin/python /apps/dolarPy/single_tweet_bot.py

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

Contributors / Thanks

TODO(APIv2)

  • Better Documentation
  • Add more currencies
  • Databases support
  • Historical data API endpoint

License

This project is licensed under the Apache 2.0 License - see the LICENSE.txt file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].