Code used for our investigations. Please cite us if you use the code. For the investigation, we had to perform the following tasks:
- Collect elected politicians' Twitter handles: https://github.com/daivarep/The-Inoculation/blob/main/Get_FR_MPs.ipynb
- Scrape their Twitter timelines
- Keep only the tweets they posted while serving as MEPs: https://github.com/daivarep/The-Inoculation/blob/main/TermFilter.ipynb
- Find relevant keywords in the tweets
- Calculate the level of engagement