Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
drawrowfly committed Dec 19, 2020
1 parent 469959e commit 40ea9b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,19 @@ hashtag.scrape();
```
### Get Set Session
In order to scrape user/hashtag/music/trending feed you need to set authenticated session cookie value!
How:
Get the session:
- Open https://www.tiktok.com/ in any browser
- Login in to your account
- Right click -> inspector -> networking
- Refresh page -> select any request that was made to the tiktok -> go to the Request Header sections -> Cookies
- Find in cookies **sid_tt** value. It usually looks like that: **sid_tt=521kkadkasdaskdj4j213j12j312;**
- **sid_tt=521kkadkasdaskdj4j213j12j312;** - this will be your authenticated session cookie value that should be used to scrape user/hashtag/music/trending feed
Set the session:
- In the **CLI** you can set session by using the option --session. For example **--session sid_tt=521kkadkasdaskdj4j213j12j312;**
- In the **MODULE** you can set session by setting the option value sessionList . For example **sessionList:["sid_tt=521kkadkasdaskdj4j213j12j312;", "sid_tt=12312312312312;"]**
### Download Video
**This part is related to the MODULE usage (NOT THE CLI)**
Expand Down

0 comments on commit 40ea9b9

Please sign in to comment.