Skip to content

Commit

Permalink
📝 update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixinol committed Nov 15, 2023
1 parent 2388223 commit 3ef7450
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
### Prepare configuration
- Configure `config.yaml`
- Edit line 69 of `/twitter_user_tweet_crawler/__main__.py`
- Prepare Chrome user data folder <u>* (set data_dir to `/twitter_user_tweet_crawler/userdata/` as an example)*</u>
- Prepare Chrome user data folder <i><u> (set data_dir to `/twitter_user_tweet_crawler/userdata/` as an example)</u></i>
1. Create a new folder under `/twitter_user_tweet_crawler/userdata/`
2. If you need ***n browser instances at the same time***, create ***n+1 folders***
3. For example, you need 3 threads to work at the same time
4. Just create new `/twitter_user_tweet_crawler/userdata/1` `/twitter_user_tweet_crawler/userdata/2` `/twitter_user_tweet_crawler/userdata/3` `/twitter_user_tweet_crawler/userdata/4`
- Pre-configuration of Chrome
- Pre-configured Chrome
1. Execute the command `/usr/bin/google-chrome-stable --user-data-dir=<data_dir>/1`
2. Install Tampermonkey extension
3. Tampermonkey expands and creates new js, and then copies the content in `script.js`<kbd>Ctrl+S</kbd>
3. Open the `Tampermonkey extension` interface to create a new js, copy the content in `script.js`<kbd>Ctrl+S</kbd>
4. Change the browser save path to `/twitter_user_tweet_crawler/output/res`
5. ...and so on until all configurations are completed
## Run
Expand Down
4 changes: 2 additions & 2 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
### 准备配置
- 配置`config.yaml`
- 编辑`/twitter_user_tweet_crawler/__main__.py`的69行
- 准备Chrome用户数据文件夹 <u>*将data_dir设置为`/twitter_user_tweet_crawler/userdata/`为例*</u>
- 准备Chrome用户数据文件夹 <i><u>将data_dir设置为`/twitter_user_tweet_crawler/userdata/`为例</u></i>
1. `/twitter_user_tweet_crawler/userdata/`下新建文件夹
2. 你需要同时进行***n个浏览器实例***就新建***n+1个文件夹***
3. 比方说你需要3个线程同时工作
4. 就新建`/twitter_user_tweet_crawler/userdata/1` `/twitter_user_tweet_crawler/userdata/2` `/twitter_user_tweet_crawler/userdata/3` `/twitter_user_tweet_crawler/userdata/4`
- 预配置 Chrome
1. 执行指令`/usr/bin/google-chrome-stable --user-data-dir=<data_dir>/1`
2. 安装Tampermonkey拓展
3. Tampermonkey拓展新建js拷贝`script.js`中的内容之后<kbd>Ctrl+S</kbd>
3. 打开 `Tampermonkey扩展` 界面新建js拷贝`script.js`中的内容之后<kbd>Ctrl+S</kbd>
4. 更改浏览器保存路径为`/twitter_user_tweet_crawler/output/res`
5. ...依次类推直至全部配置完毕
## 运行
Expand Down

0 comments on commit 3ef7450

Please sign in to comment.