This is being used to grab the Trump tweets that have a passing relationship to China.
- Add a valid
BEARER_TOKEN
to.env
. - Run search query in the browser: https://twitter.com/search?q=from%3Arealdonaldtrump%20YOUR_QUERY_HERE&src=typed_query&f=live
- On the search results page scroll to the bottom of the search results to pre-execute all of the network requests.
- Paste the contents of
0_capture.js
into the browser console. - Wait for script execution to complete.
- Paste
copy(JSON.stringify(output, null, 2));
into the browser console. - Paste that JSON blob into
1_generate_script.js
. - Run
./execute.sh
Most of these searches have been manually stemmed as well.
- China (Chinese)
- Hong Kong (HK)
- Taiwan
- Tibet
- Mongolia
- Xinjiang
- Beijing
- Shenzhen
- Taipei
- Shanghai
- Wuhan
- Trade War
- Trans-Pacific Partnership (TPP)
- Uyghurs
- Tiananmen
- World Trade Organization (WTO)
- World Health Organization (WHO)
- TikTok
- Alibaba
- Baidu
- Huawei
- ZTE
- FoxConn
- Lenovo
- Tencent
- Xiaomi
- Xi Jinping
- Meng Wanzhou
- Guo Wengui