Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy & Paste Web Page
#2
If you mean just the html of the page then page is the variable that contains the webpage HTML

import urllib.request
f = urllib.request.urlopen(URL)
page = f.read()
import requests
r = requests.read(URL)
page = r.text
Recommended Tutorials:
Reply


Messages In This Thread
Copy & Paste Web Page - by ian - Dec-24-2018, 03:49 PM
RE: Copy & Paste Web Page - by metulburr - Dec-24-2018, 04:06 PM
RE: Copy & Paste Web Page - by ian - Dec-24-2018, 04:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  use Xpath in Python :: libxml2 for a page-to-page skip-setting apollo 2 3,679 Mar-19-2020, 06:13 PM
Last Post: apollo

Forum Jump:

User Panel Messages

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