Created
June 24, 2015 20:16
-
-
Save phillipsm/7199f931a2de6787c0b6 to your computer and use it in GitHub Desktop.
Build list of inmates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url_to_scrape = 'http://apps2.polkcountyiowa.gov/inmatesontheweb/' | |
r = requests.get(url_to_scrape) | |
soup = BeautifulSoup(r.text) | |
inmates_links = [] | |
for table_row in soup.select(".inmatesList tr"): | |
table_cells = table_row.findAll('td') | |
if len(table_cells) > 0: | |
relative_link_to_inmate_details = table_cells[0].find('a')['href'] | |
absolute_link_to_inmate_details = url_to_scrape + relative_link_to_inmate_details | |
inmates_links.append(absolute_link_to_inmate_details) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm a final year student of b.tech information technology.as i was doing my final year project based on detecting phishing website by sending popup message to the users ....for that i need a help from u