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
  Python Obstacles | Krav Maga | Wiki Scraped Content [Column Copy] BrandonKastning 4 2,270 Jan-03-2022, 06:59 AM
Last Post: BrandonKastning
  Python Obstacles | Kapap | Wiki Scraped Content [Column Nulling] BrandonKastning 2 1,770 Jan-03-2022, 04:26 AM
Last Post: BrandonKastning
  I want to create an automated website in python mkdhrub1 2 2,475 Dec-27-2021, 11:27 PM
Last Post: Larz60+
  Python Web Scraping can not getting all HTML content yqqwe123 0 1,659 Aug-02-2021, 08:56 AM
Last Post: yqqwe123
  Python to build website Methew324 1 2,259 Dec-15-2020, 05:57 AM
Last Post: buran
  Scraping all website text using Python MKMKMKMK 1 2,108 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  Python Webscraping with a Login Website warriordazza 0 2,630 Jun-07-2020, 07:04 AM
Last Post: warriordazza
  Python tool based on website? zarize 2 2,515 Mar-21-2020, 02:25 PM
Last Post: zarize
  requests problem in python script "content type" abdlwafitahiri 4 3,259 Dec-29-2019, 02:29 PM
Last Post: abdlwafitahiri
  Python + request from specific website - please help hoff1022 8 4,365 Feb-14-2019, 06:52 PM
Last Post: buran

Forum Jump:

User Panel Messages

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