answersLogoWhite

0


Best Answer

I don't know what you mean by cache. Given the URL, you can save it to a file, with the following code. Mind you, it's not always entirely smooth sailing. Web developers have various ways of blocking attempts to grab the contents of their pages.

from urllib import urlopen

file ( 'myfile.htm', 'w' ) . write ( urlopen ( URL ) . read ( ) )

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you cache a webpage in Python 2.7?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does a browser cache every webpage visited?

Yes, browser can cache every web page visited. It is to load the pages faster in future.


Why do you clear your browser's cache?

One would clear their browsers' cache if they wanted to be sure that they receive the very latest from the webpage(s) they are visiting.


How do you unfreeze a webpage?

Refresh - either right-click then Refresh - or at top of page View / Refresh


Help I CAN'T search in the middle of the webpage but i can search on the way top of a webpage for example?

On which search engine did you mean? If it is on Yahoo, Google, Avasearch , Bing or Ask jus reset the cookies , cache, history .....


How can I learn C and Python languages for free?

There are many online resources that are free for both C and Python. I learned Python recently and posted links to a free book, a couple forums, some free development environments etc. at my webpage: http://www.homeworkcat.com


How do you scan a page and put in google to search the webpage?

This phenomena is called Caching of the webpage. You can see it by entering website URL in the Google search and then in right side of the Search engine result Page you will see cache written just click on it and you can see the last time Google cached your webpage .


When was Cache Cache created?

Cache Cache was created in 1981.


What are the type of cache memory?

There are different type of cache memory: processor cache memory, cache memory ram,1 cache memory l2, cache memory, CPU cache memory, disk cache memory, hard disk cache, cache memory motherboard.


What is the collective noun for cache?

The collective noun 'cache' is used for:a cache of ammunitiona cache of jewelsa cache of moneya cache of weapons


What can you use the collective noun 'cache' with?

The collective noun 'cache' is used for:a cache of ammunitiona cache of jewelsa cache of moneya cache of weapons


What are the two types of cache memory?

There are different type of cache memory: processor cache memory, cache memory ram,1 cache memory l2, cache memory, CPU cache memory, disk cache memory, hard disk cache, cache memory motherboard.


What are the release dates for Python Hunters - 2010 Giants of Puerto Rico 2-5?

Python Hunters - 2010 Giants of Puerto Rico 2-5 was released on: USA: 27 May 2011