twitter_bookmark_scrape.ipynb
: Notebook containing execution code. Comments should help navigatetweescrapy.py
: backend code
-
Download both files and put into a folder which you can access with Jupyter
-
Install any uninstalled dependencies:
- selenium
- numpy
- pandas
-
Setup selenium executable
-
download the appropriate webdriver executable (for your Chrome version and OS) from here: https://chromedriver.chromium.org/downloads
-
Once downloaded and unzipped, put this executable into the same folder as this webscraper code and then add the full filepath to this executable to the
driver_path
variable in the notebook.
-
-
To run, open the Jupyter notebook and follow the instructions. Output should be a dataframe containing your bookmarked tweets and threads (this will take a little while as the scraper navigates through the tweets/threads). Note that currently only posts by the original author are included.