This commit is contained in:
KorenLazar
2020-12-07 13:50:03 +02:00

View File

@@ -3,19 +3,13 @@
## Installation ## Installation
clone: clone:
```cmd script ```cmd script
git clone https://github.cs.huji.ac.il/danieljannai/cryptocurrencies-project git clone https://github.com/korenLazar/shufersal-scraping.git
cd cryptocurrencies-project cd shufersal-scraping
virtualenv venv virtualenv venv
venv\bin\activate venv\bin\activate
pip install -r requirements.txt pip install -r requirements.txt
``` ```
## Simulator
This app simulates a bitcoin network with many transactions resulting in a bloated blockchain. When the `--evil`
flag is enabled, one of the nodes will commence an attack on some of the blocks, resulting in a lower fee rate
in spite of the blockchain being full.
## Dependencies ## Dependencies
1. python (3.7+) 1. python (3.7+)
@@ -28,12 +22,12 @@ python main.py --find_store ירושלים
``` ```
After running the command, you'll be able to see the different stores in Jerusalem with their ids in "stores_ירושלים.log". After running the command, you'll be able to see the different stores in Jerusalem with their ids in "stores_ירושלים.log".
Now, that we have the store's id, we can get its promotions sorted by their update date by running: Now, that we have the store's id, we can get its promotions sorted by their update date by running
```cmd script ```cmd script
python main.py --promos 5 python main.py --promos 5
``` ```
* We assumed that the store's id is 5. * We assumed that the store's id is 5.
Now, you can find the promos in promos_5.log. Now, you can find the promos in "promos_5.log".
For other documentation and commands, you can run For other documentation and commands, you can run
```cmd script ```cmd script