getting img url


 
Thread Tools Search this Thread
Top Forums Programming getting img url
# 1  
Old 09-30-2002
getting img url

hey, i just found this forum...how cool.
question:
does anybody know code or know where i can get the code to get a certain image URL from user? say user input URL from shell prompt when run the program. What is the code to take that URL open internet and download the image.
thanks alot.
# 2  
Old 09-30-2002
Re: getting img url

Quote:
Originally posted by bb00y
hey, i just found this forum...how cool.
question:
does anybody know code or know where i can get the code to get a certain image URL from user? say user input URL from shell prompt when run the program. What is the code to take that URL open internet and download the image.
thanks alot.
I won't give it all away but I will give you some pointers.

You can use wget to pull the HTML from a page and then use sed, awk, perl, or most anything thing else that uses regular expressions to pull the img tags and then pull the image automagically.
# 3  
Old 10-02-2002
thank you.
so wget is a program that i need to activate to get the URL.

Last edited by bb00y; 10-02-2002 at 02:17 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

2. Shell Programming and Scripting

How to remount .img as rw and repack

Hi fellas! I make a sh script which the following: sudo mkdir Temp sudo mount -o loop output.img Temp The command mounts the img.Thats fine.But it moun s it as read only.But I need to edit/delete some files inside it and repack it as ext4 using this command: sudo ./mkuserimg.sh -s Temp... (3 Replies)
Discussion started by: vijai
3 Replies

3. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

4. UNIX for Dummies Questions & Answers

.IMG file help!!!

I've been trying to create an IMG file for the past week with no success. I've tried using: dd if=/dev/zero of=myimage.img bs=512 count=2880 mke2fs myimage.img mkdir /media/mount_point mount -o loop myimage.img /media/mount_point cp -aR <file> /media/mount_point umount /media/mount_point ... (30 Replies)
Discussion started by: neur0n
30 Replies

5. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

6. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

7. UNIX for Advanced & Expert Users

.DSK to .IMG ?

Hi, I have a windows emulator that I am wanting to try out, but my Windows 3.1 files are split up over 6 .DSK images, and I need to convert them to an .IMG that I can actually mount on my system (so that the emulator can see it). Is there a way to do this? thanks. -patrick (0 Replies)
Discussion started by: patrick99e99
0 Replies

8. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

9. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
Login or Register to Ask a Question