Insecam Ip streaming links

231 views
Skip to first unread message

Quinten De Wilde

unread,
Jan 26, 2017, 6:40:24 PM1/26/17
to beautifulsoup
How would I gather all the links of all the (src:'https:.......') in the subfolder Japan

I'm unable te make this work. 

insecam japan has 


and page up to 322

In every page there are 6 views. When clicking 1 of the views I get :


for example. In those views there's a tag src.

in 

<a rel="nofollow" href="http://219.167.122.218:80/" target="new">
<img id="image0" src="http://219.167.122.218:80/-wvhttp-01-/GetOneShot?image_size=640x480&amp;frame_count=no_limit" class="img-responsive img-rounded detailimage" alt="" title="Click here to enter the camera located in Japan, region Tokyo, Tokyo"></a>

The underling thick link is what I need. Anybody an idea how to get to this? 


Quinten De Wilde

unread,
Feb 6, 2017, 1:54:04 PM2/6/17
to beautifulsoup
Nobody an idea how to scrape these links from that site? 

I managed to this

import urllib2, sys
from BeautifulSoup import BeautifulSoup
 
hdr = {'User-Agent': 'Mozilla/5.0'}
req = urllib2.Request(site,headers=hdr) 
page = urllib2.urlopen(req) . => urllib2.HTTPError: HTTP Error 404: Not Found
soup = BeautifulSoup(page)
print soup


Op vrijdag 27 januari 2017 00:40:24 UTC+1 schreef Quinten De Wilde:
Reply all
Reply to author
Forward
0 new messages