Research
- Crime Categories
- Murder Circumstances
- Charges
- Murder Numbers by SHR
- Definitions of Murder
- Crime Literature
- Other Literature
- Seminars
- Journal Ranking
- Laws
- Changes in Law and Reporting in Michigan
- Citation Guides
- Datasets
Writing
Methods
- BLP
- Econometrics Models
- Econometrics Tests
- Econometrics Resources
- Event Study Plots
- Metrics Literature
- Machine Learning
Python-related
- Python Basic Commands
- Pandas Imports and Exports
- Pandas Basic Commands
- Plotting in Python
- Python web scraping sample page
- Two Sample t Test in Python
- Modeling in Python
R-related
- R Basics
- R Statistics Basics
- RStudio Basics
- R Graphics
- R Programming
- Accessing MySQL Databases from R
Latex-related
Stata-related
SQL
Github
Linux-related
Conda-related
AWS-related
Webscraping
Interview Prep
Other
Web scraping
(Updated 8-8-2023)
Links
Python
xpath
xpath with multiple layers:
driver.find_elements("xpath", "//pre[contains(@class, 'ma-0')]|//span[contains(@class, 'font-weight-bold')]")
xpath with and statement:
hidden_price_elements = driver.find_elements("xpath", "//*[contains(@class, 'click-to-see') and (contains(@class, 'category-slider__item__price category-slider__item__price--inline'))]")
driver.find_elements(By.XPATH, "//button[contains(@aria-label, 'Next page') and not(contains(@class, 'disabled'))]")
xpath with or statement:
driver.find_elements("xpath", "//button[contains(@class, 'class name')]//span[contains(@class, 'subclass name')] | //button[contains(@class, 'class name 2')]//span[contains(@class, 'subclass name')]")