473,473 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Digg-Like Images from Url fetcher.

Hello,

I've been Googling around the internet oceans in search of a piece of
code that has a similar functionality as the Digg image fetcher. I've
always wondered how this thing works exactly.

The thing is, you give it a URL. It then crawls the site for images,
and gives them to you in a nice tidy way, with a ay a radio button
next to each image. You select the one you like/want, and it discards
the rest.

I just want the image fetcher, the rest is not that difficult. Oh and
I don't need the whole code, just some general pointers to what I need
to look for exactly.

Thanks for reading this, hope this is also interesting for other
people.
Jun 27 '08 #1
2 1377
You need to do this with a server side language like PHP/ASP/.NET or
similar.
I wrote one in PHP.
I call this method 'Page scraping'
Basically, using the URL you are given, you load the contents of the
URL (the HTML) into a variable and search through the variable for
image tags. You have to do some string manipulation to get each image
tag out successfully, and then display them at the end by printing out
each image.

I'm not sure you can do this solely with JavaScript but I may be
wrong.
Graham
Jun 27 '08 #2
Thanks for your reply.

I posted this in the javascript group because I didn't know exactly
how it works. A php script is probably the best way.

Not to bother you much, if what you wrote is open-source could I have
a link where to get it. If not, could you point me to a place where
you found some info to write something like that.

Thanks again.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: blinkfn46 | last post by:
http://digg.com/tech_news/Great_idea_2 please comment on this link
10
by: Marek Zawadzki | last post by:
Hi all. Is it possible to implement an accurate voting mechanism (think digg.com) that does not require users to sign in before voting? I think for many people registering is pain and thus...
92
MMcCarthy
by: MMcCarthy | last post by:
When I bought my new system a couple of months ago I actually paid extra to have XP Pro installed rather than Vista. Apart from anything else most of my clients still use XP. Eventually I will have...
9
by: Raistlin Majere | last post by:
Take a look at the source code and the number of files of phpdug. click choose download at http://www.kubelabs.com/phpdug/ and select 1.4.2 How much time and money is needed to create a...
0
by: Raistlin Majere | last post by:
Take a look at the source code and the number of files of phpdug. click choose download at http://www.kubelabs.com/phpdug/ and select 1.4.2 How much time and money would you need to...
0
by: Raistlin Majere | last post by:
Take a look at the source code and the number of files of phpdug. click choose download at http://www.kubelabs.com/phpdug/ and select 1.4.2 How much time and money would you need to...
2
jamwil
by: jamwil | last post by:
What's up guys. I'm having some issues... I've created a method as part of my lifestreaming class which takes an rss feed, and puts the data into a database... It's fairly simple... Check...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.