Python scripts, mostly for corpus linguistic research.
Python script to OCR .pdf files with Google's Tesseract and save the text in .txt files. Before running this script, you must have downloaded and installed Tesseract and ImageMagick (and GhostScript, if using a Mac), and the Pillow Python module.
Python script to webscrape comments below Youtube videos. Uses Youtube's API rather than Selenium.
Python script to control Selenium in order to webscrape comments below a Youtube video.
Python function to extract text out of PDF files, whether they are already indexed or not.
Python script to scrape a website, until a user-given number of webpages have been scraped or the entire domain has been scraped, whichever comes first.
A Python script to control the web browser automating software Selenium to webscrape keyword-in-context results from the Corpus del Español (Web / Dialects).
Use Selenium to a webscrape Yelp review.
A Python script to webscrape the frequency of a search term in the Corpus del Español with the Python module requests.
A Python script to control the web browser automating software Selenium to webscrape frequencies from the Corpus del Español (Web / Dialects).
Python script (still in a drafty state) to control Selenium to webscrape tweets from Twitter's Advanced Search webpage.
Command-line tool to scrape text from a webpage and save it to a TXT file in the working directory.
Python command-line tool to download a speech from https://factba.se/.
A Python executable file to create a frequency list of single words from a directory of .txt files. Returns a .csv file with two columns, one with the words and the other with their corresponding frequency.
Get collocates of a node word, specifying how many words to the right and left to look.
A Python script to create a concordance display of a regex in a directory of .txt files. Returns a .csv file with five columns: FILE (name of file), PARA (paragraph number), PRE (preceding context within paragraph), HIT (the match), FOL (following context within paragraph).
Get keywords in a corpus, specifying a reference corpus, both on the user's hard drive.
Python script to extract the closed captions generated by automated speech recognition on Youtube videos, and save the transcripts to the hard drive as CSV files.
Get the closed captions of a Youtube video, as generated by Youtube's automated speech recognition software.