From 3ef7450d21abe8fb95848602b271489511d658c9 Mon Sep 17 00:00:00 2001 From: kaesinol Date: Wed, 15 Nov 2023 17:11:30 +0800 Subject: [PATCH] :memo: update doc --- README.md | 6 +++--- README_zh_CN.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 44ab29f..f43ad6c 100644 --- a/README.md +++ b/README.md @@ -18,15 +18,15 @@ ### Prepare configuration - Configure `config.yaml` - Edit line 69 of `/twitter_user_tweet_crawler/__main__.py` -- Prepare Chrome user data folder * (set data_dir to `/twitter_user_tweet_crawler/userdata/` as an example)* +- Prepare Chrome user data folder (set data_dir to `/twitter_user_tweet_crawler/userdata/` as an example) 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=/1` 2. Install Tampermonkey extension - 3. Tampermonkey expands and creates new js, and then copies the content in `script.js`Ctrl+S + 3. Open the `Tampermonkey extension` interface to create a new js, copy the content in `script.js`Ctrl+S 4. Change the browser save path to `/twitter_user_tweet_crawler/output/res` 5. ...and so on until all configurations are completed ## Run diff --git a/README_zh_CN.md b/README_zh_CN.md index 9d7bd7d..4af3b7a 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -18,7 +18,7 @@ ### 准备配置 - 配置`config.yaml` - 编辑`/twitter_user_tweet_crawler/__main__.py`的69行 -- 准备Chrome用户数据文件夹 *(将data_dir设置为`/twitter_user_tweet_crawler/userdata/`为例)* +- 准备Chrome用户数据文件夹 (将data_dir设置为`/twitter_user_tweet_crawler/userdata/`为例) 1. 在`/twitter_user_tweet_crawler/userdata/`下新建文件夹 2. 你需要同时进行***n个浏览器实例***就新建***n+1个文件夹*** 3. 比方说你需要3个线程同时工作 @@ -26,7 +26,7 @@ - 预配置 Chrome 1. 执行指令`/usr/bin/google-chrome-stable --user-data-dir=/1` 2. 安装Tampermonkey拓展 - 3. Tampermonkey拓展新建js,拷贝`script.js`中的内容之后Ctrl+S + 3. 打开 `Tampermonkey扩展` 界面新建js,拷贝`script.js`中的内容之后Ctrl+S 4. 更改浏览器保存路径为`/twitter_user_tweet_crawler/output/res` 5. ...依次类推,直至全部配置完毕 ## 运行