readme instructions for virtualenv
parent
8437ca7b65
commit
9ca316671f
|
@ -1,3 +1,5 @@
|
||||||
|
/venv/
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|
|
@ -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:
|
Once you have the above, just follow these steps:
|
||||||
|
|
||||||
1. Clone this repository.
|
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:
|
3. In `config.json`, update the following:
|
||||||
|
|
||||||
- `tweets.source_account_url`: The source Twitter account.
|
- `tweets.source_account_url`: The source Twitter account.
|
||||||
|
@ -30,6 +30,8 @@ For example:
|
||||||
## How do I run it?
|
## How do I run it?
|
||||||
Once it's all setup, just run the main file like this:
|
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`
|
`python3 run.py`
|
||||||
|
|
||||||
If all goes well, you'll see something like this:
|
If all goes well, you'll see something like this:
|
||||||
|
|
Loading…
Reference in New Issue