Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Retrieving data using urllib2 - Connected Refused by host.

So writing a small program to analyse data from the web.

My program calls a function every 1-3 seconds to download the data and after 9-12 seconds it analyses that data I have taken at those intervals. My issue is that the host refuses the connection after a set period of time.

I cannot see anyway around this but increase the time it retrieves the data as the problem is with the host and not me.

Thought I would ask you clever clogs to see if you had a solution? I preferably want to get the data every second to make it as reliable as possible but can't see how I would do it.
Source? Url?

Need more information. Think u have to analyze the page again.
Use Requests or sinethingblike that
Found an alternative to how to do this.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by ColdCypherDec 19, 2020 09:14 PM 0 140 Dec 19, 2020 09:14 PM
Last Post: ColdCypher
[Shell] by HardRockOct 28, 2019 11:45 PM 3 214 Oct 28, 2019 11:45 PM
Last Post: HardRock
[Python] by OracleJul 6, 2019 01:26 AM 2 144 Jul 6, 2019 01:26 AM
Last Post: Oracle