Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 authored Aug 20, 2021
1 parent 60f1a0e commit 842be6d
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ Imitating an Internet user by mimicking popular web traffic (internet traffic ge
while True:
2. from google trends script gets a list of popular keywords that in real time are searched
by people on google search in the specified country in the specified language,
3. select a random trend, take from there the keywords and urls of related articles,
4. the selected keywords are searched on google and duckduckgo, the found urls are added
to the existing ones,
5. the script sequentially sends requests to a list of urls,
6. in each open url, recursive queries to random links are performed to a random depth (1-5).
threads:
3. select a random trend, take from there the keywords and urls of related articles,
4. the selected keywords are searched on google and duckduckgo, the found urls are added
to the existing ones,
5. the script sequentially sends requests to a list of urls,
6. in each open url, recursive queries to random links are performed to a random depth (1-5).
```

### Install
Expand All @@ -37,6 +38,19 @@ from fake_traffic import fake_traffic
fake_traffic(country='US', language='en-US")
```
---
### Advanced usage
```python
from fake_traffic import fake_traffic

fake_traffic(country='US', language='en-US", threads=2, min_wait=1, max_wait=5, debug=True)
""" country = country code ISO 3166-1 Alpha-2 code (https://www.iso.org/obp/ui/),
language = country-language code ISO-639 and ISO-3166 (https://www.fincher.org/Utilities/CountryLanguageList.shtml),
threads = number of threads (defaults to 1),
min_wait = minimal delay between requests (defaults to 1),
max_wait = maximum delay between requests (defaults to 30),
debug = if True, then print the details of the requests (defaults to False).
```
---
### Example
Mimic traffic of a user located in Turkey.
Expand All @@ -48,9 +62,10 @@ Find Turkey country-language code ([ISO-639 and ISO-3166](https://www.fincher.or
- kurdish "ku-TR", </br>
- turkish "tr-TR". </br>

Starting work in two threads:
- threads=2
```python
from fake_traffic import fake_traffic
fake_traffic(country="TR", language="ku-TR")
fake_traffic(country="TR", language="ku-TR", threads=2)
```

0 comments on commit 842be6d

Please sign in to comment.