readme instructions for virtualenv

pull/9/head
Vincent Agnano 2019-12-11 10:47:55 +01:00
parent 8437ca7b65
commit 9ca316671f
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
/venv/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

View File

@ -13,7 +13,7 @@ Getting Tweet-Toot working is pretty easy. Before you can install it, you're goi
Once you have the above, just follow these steps:
1. Clone this repository.
2. Install the Python3 libraries `requests` and `beautifulsoup` mentioned in the `requirements.txt` file.
2. Install the Python3 libraries: `python3 -m venv venv`, then `source venv/bin/activate` and install dependencies `pip install -r requirements.txt`.
3. In `config.json`, update the following:
- `tweets.source_account_url`: The source Twitter account.
@ -30,6 +30,8 @@ For example:
## How do I run it?
Once it's all setup, just run the main file like this:
Activate the virtualenv you created on install (if it's not activated yet): `source venv/bin/activate` and run the script:
`python3 run.py`
If all goes well, you'll see something like this: