7 Topics

Member Avatar for
Member Avatar for Niloofar24

Hello. This is my code: from bs4 import BeautifulSoup import urllib2 url = urllib2.urlopen('http://www.website_address.com') soup = BeautifulSoup(url) images = soup.find_all('img') Now how can I get the "src" of img tags?

Member Avatar for Gribouillis
0
17K
Member Avatar for phoenix254

$result = mysqli_query($con,$addtothedb); $cur = "USERS/"; echo $des = $cur.$email.'/'; if($result){ if ( mkdir($des,0777) ) { //http://pastebin.com/7J0BM5fD echo "<br/>"; echo "<br/>"; echo $file_name = $_FILES['file']['name']= 'mfix.png'; echo "<br/>"; echo "<br/>"; echo $file_tmp =$_FILES['file']['tmp_name']= 'mfix.png'; echo "<br/>"; echo "<br/>"; move_uploaded_file($file_tmp, $des.$mfix); echo "<img src='<?php echo $mfix ;?>' alt='Image' style='width:100px;height:100px'>"; /*echo "<img …

Member Avatar for phoenix254
-1
196
Member Avatar for serph09

So I have this code here: http://jsfiddle.net/4Cqkh/1/ What I'm trying to do is when I click on a thumbnail, the below larger image of it should display according to which thumbnail is clicked. I tried switching the larger image's src to that of the thumbnail src's value when clicked but …

Member Avatar for serph09
0
246
Member Avatar for RT00220489

Hi, My question goes as follows : I need to replace an existing image, with another one, but without using jquery ie using javascript and using the id of the image as it is <asp:Image> tag and hence does not support name. The image supports the functionality of toggling the …

Member Avatar for RT00220489
0
3K
Member Avatar for efth

I have it set up so that onclick (on a picure) calls the following function: function nxtimg(country){ document.getElementById("imgcont").src="images",country,"/",imgs[i],".jpg"; i++; } When I click on the image however, accorfing to firebug, the src of the image is; "images". It should have been changed to something like: "images/a/flag". Where did I mess …

Member Avatar for theHop
0
257
Member Avatar for ChaosKnight11

Hi, I am running Ubuntu 10.04 LTS, and wanted to install RVM today, I used: bash < <( curl [url]http://rvm.beginrescueend.com/releases/rvm-install-head[/url] ) (NOTE: I already have git-core and curl, etc.) After running that command I get the output in terminal from Wayne, and I added: if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; …

0
160
Member Avatar for feoperro

Hi, When I set width and height properties in the <iframe> tag, it sets the width and height respectively, however, the "src" page inside the iframe is still small and has a scroll bar. Is there a way to set the src to be equal to the iframe dimensions? Thanks, …

Member Avatar for bben95
0
181

The End.