1

I want to write a code, which is copying source code of website after each reload. Can anyone say a library by which i can realize my desires?

2 Answers 2

2

You can do that simply with requests:

First pip install requests.

Then:

import requests r = requests.get('http://your_url) print(r.text) 

If you want to manipulate html you should use beautiful soup, or selenium.

Sign up to request clarification or add additional context in comments.

2 Comments

And i dont need any specific library?
requests, beautifull soup and selenium python are libraries. You just need to install them with pip.
1

You may try this library: urllib2

import urllib2 p= urllib2.urlopen('http://write_your_address') content = p.read() 

I hope this help you ;)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.