473,320 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Scrape parts of a page (php)

I'm looking to scrape an image off a website. The image changes daily. The image name however consistently starts with "product_image". How could I search for any image with that beginning, and then display it on a page, probably appending the url of the site to it as well.

Also, is it pretty simple once I pull the image to drop it in a database?

Thanks so much for any help you can give!
Nov 1 '09 #1
2 2527
Atli
5,058 Expert 4TB
Hey.

Yes, you only need to add the URL of the page to the image source.
Like: http://www.example.com/images/image.jpg

@edskellington
Could you explain that a little better?
Don't really understand what yo mean.
Nov 1 '09 #2
I'm looking to build an aggregation site which will contain 6 images from 6 different sites.

So for instance, I want to pull down the detail image from http://teefury.com. Here is the code.

Expand|Select|Wrap|Line Numbers
  1. <div id="product_design">
  2. <table width="100%" cellspacing="0" cellpadding="0" border="0">
  3. <tbody>
  4. <tr>
  5. </tr>
  6. <tr>
  7. <td valign="top" colspan="3">
  8. <img border="0" src="products_large_images/bottom-sfl.jpg"/>
  9. </td>
  10. </tr>
  11. </tbody>
  12. </table>
  13. </div>
This image changes everyday because the website sells a new shirt everyday, (like WOOT.com)

I want to display THAT one image... but when I pull down that chunk of code, obviously the image isn't working cause the full path isn't on there.... so how do I append the first part of the url "http://teefury.com/"

The end part of that url will change "bottom-sfl.jpg" but the first part "products_large_images" won't so that is my constant. If that makes sense...?

Thanks, hope that helps! Thanks in advance!
Nov 1 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Eric Veltman | last post by:
Hello everyone, I've posted this question before, but got no answer, so I'll try to reformulate the question, maybe it helps :-) By the way, this is not intended as the start of an ASP.NET...
2
by: WindAndWaves | last post by:
Hi Gurus Is there a way you can password protect a particular function/action on a page? What I basically want to do is to have a page and if people click on a button that they are able to edit...
5
by: Tony Pino | last post by:
Hi, Lets say there's a web site with simple authentication. It asks you to type a uname/password into a couple text boxes, and then it gives you a cookie and you're logged in for 20 minutes or...
2
by: Rob Lauer | last post by:
I have written two completely separate web applications that cannot talk directly to one another (applications "A" and "B"). Application "A" has a form that takes some input (radio buttons,...
5
by: crjunk | last post by:
I have a screen scrape page that allows the user to submit a url. When they hit submit, the page is returned back to them on my screen scrape page. Which computer actuall connects to the url to...
3
by: tscamurra | last post by:
Hello, I have a web app that performs screen scaping and submits a form. My code worked until the page was changed to use .aspx code. I am updating my code to conform to the new pages but am...
4
by: alan.aylett | last post by:
Hi, I have three years experience programming with Java so am programming language literate. I have to implement a tool to 'screen scrape' and it is apparent that this is simplest using the .NET...
7
by: Swanand Mokashi | last post by:
Hi all -- I would like to create an application(call it Application "A") that I would like to mimic exactly as a form on a foreign system (Application "F"). Application "F" is on the web (so...
1
by: nbomike | last post by:
Hello. I want to scrape pages from a site that generates pages from form inputs using this web app . However, the URL of the results page (the page I want to scrape) is masked and is always the same....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.