Python Forum
Python + request from specific website - please help
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python + request from specific website - please help
#3
Got it. I got this far:

import requests
from bs4 import BeautifulSoup
url = "https://ucr.gov/enforcement/1712583"
url_get = requests.get(url)
soup = BeautifulSoup(url_get.content, "html.parser")
print(soup)
However it doesn't show me the text I want. I want to pull the "2019 UNREGISTERED" data. How do I do that? (referencing: https://ucr.gov/enforcement/1712583)
Reply


Messages In This Thread
RE: Python + request from specific website - please help - by hoff1022 - Feb-05-2019, 09:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting content from a website using Python? SandraYokum 4 614 Jun-18-2024, 07:57 AM
Last Post: Larz60+
Question Python request (post/get) Drunknmonkie 1 2,870 Jan-19-2023, 02:02 PM
Last Post: prvncpa
  Retrieve website content using Python? Vadanane 1 1,456 Jan-16-2023, 09:55 AM
Last Post: Axel_Erfurt
  I want to create an automated website in python mkdhrub1 2 2,658 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  Python to build website Methew324 1 2,356 Dec-15-2020, 05:57 AM
Last Post: buran
  Scraping all website text using Python MKMKMKMK 1 2,209 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  Python Webscraping with a Login Website warriordazza 0 2,745 Jun-07-2020, 07:04 AM
Last Post: warriordazza
  Python Request's Proxies not working. Fudster 1 8,717 May-01-2020, 06:42 AM
Last Post: buran
  Python tool based on website? zarize 2 2,585 Mar-21-2020, 02:25 PM
Last Post: zarize
  Python handling Apache Request harzsr 3 3,971 Nov-16-2018, 04:36 AM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020