Skip to content

Instantly share code, notes, and snippets.

@phillipsm
Created June 24, 2015 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipsm/7199f931a2de6787c0b6 to your computer and use it in GitHub Desktop.
Save phillipsm/7199f931a2de6787c0b6 to your computer and use it in GitHub Desktop.
Build list of inmates
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)
@pavithrachandran
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment