- Webservice: (coti.py) Checks USD/PYG exchange rate from several sites every 10 minutes, displays in json
- TwitterBot: Reads webservice output and tweet it(in a human readable format)
http://dolar.melizeche.com/api/1.0/
- For Android https://github.com/ivankoop/DolarPy-Android
- For Java https://github.com/melizeche/dolarpy-wrapper-java
- For Python https://github.com/melizeche/dolarpy-wrapper-python
- Python 2.7+ or 3.5+
- BeautifulSoup4
- Flask
- Tweepy
git clone git@github.com:melizeche/dolarPy.git
cd dolarPy
virtualenv env
source env/bin/activate
pip install -r requirements.txt
crontab -e (add coti.py) // See example below
python cotiapp.py
# 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
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- Marcelo Elizeche Landó https://github.com/melizeche
- Alejo Carballude https://github.com/AlejoAsd
- Carlos Carvallo https://github.com/carloscarvallo
- Diego Díaz https://github.com/berithpy
- Diego Zacarías https://github.com/zv3
- Ivan Koop https://github.com/ivankoop
BetterDocumentation- Add more currencies
- Databases support
- Historical data API endpoint
This project is licensed under the Apache 2.0 License - see the LICENSE.txt file for details