Python Forum
Retrieve website content using Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve website content using Python?
#2
from urllib.request import Request, urlopen

req = Request('http://services.runescape.com/m=hiscore/ranking?table=0&category_type=0&time_filter=0&date=1519066080774&user=zezima', 
                              headers={'User-Agent': 'Mozilla/5.0'})
page = urlopen(req).read().decode()
print(page)
Reply


Messages In This Thread
RE: Retrieve website content using Python? - by Axel_Erfurt - Jan-16-2023, 09:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting content from a website using Python? SandraYokum 2 440 May-27-2024, 03:30 AM
Last Post: Davidleo
  Python Obstacles | Krav Maga | Wiki Scraped Content [Column Copy] BrandonKastning 4 2,347 Jan-03-2022, 06:59 AM
Last Post: BrandonKastning
  Python Obstacles | Kapap | Wiki Scraped Content [Column Nulling] BrandonKastning 2 1,821 Jan-03-2022, 04:26 AM
Last Post: BrandonKastning
  I want to create an automated website in python mkdhrub1 2 2,582 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  Python Web Scraping can not getting all HTML content yqqwe123 0 1,712 Aug-02-2021, 08:56 AM
Last Post: yqqwe123
  Python to build website Methew324 1 2,319 Dec-15-2020, 05:57 AM
Last Post: buran
  Scraping all website text using Python MKMKMKMK 1 2,161 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  Python Webscraping with a Login Website warriordazza 0 2,710 Jun-07-2020, 07:04 AM
Last Post: warriordazza
  Python tool based on website? zarize 2 2,556 Mar-21-2020, 02:25 PM
Last Post: zarize
  requests problem in python script "content type" abdlwafitahiri 4 3,347 Dec-29-2019, 02:29 PM
Last Post: abdlwafitahiri

Forum Jump:

User Panel Messages

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