+ Reply to Thread
Results 1 to 1 of 1

How to save pictures to disk from html page source?

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    How to save pictures to disk from html page source?

    Hello,

    How to save pictures to disk from html page source? I use Selenium web driver to navigate through pages.
    1.PNG
    HTML Code: 
    Sometimes there will be only one picture, sometimes more, but they will always be in this id="ctl00_pagecontext_articleimagecontrol1_PanelThumbs" div, past "href=".
    First picture url structure will be always like this "/partscatalogue/docloader.ashx?doc=....................", others: "/Handlers/ArticleImage.ashx?id=............"

    Link prefix is "http://site.com"

    I want pictures to be saved to disk directory using names from url:

    30_09_0001_1.JPG ("+" changed to "_")
    3-104509-1.jpg
    3-104509-3.jpg
    3-104509-2.jpg

    I would also like to write to excel column cell the directories of the saved pictures, separated by comma. f.e C:\directory\30_09_0001_1.JPG, C:\directory\3-104509-1.jpg, ...............

    If this is to much questions, give me some guides ore implementations of some parts. Thank you very much
    Last edited by rcurious; 05-20-2021 at 11:02 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Looping An Array (HTML Source Page) To Separate Columns
    By superdesi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2018, 02:59 PM
  2. Save a web Page as a HTML
    By Matty5894 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2015, 05:45 AM
  3. Getting Web page source (HTML or XML) in VBA?
    By Riorin in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 01-16-2013, 10:32 AM
  4. How to save HTML source code from VBA?
    By Jaymond Flurrie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2008, 06:15 PM
  5. [SOLVED] VBA to save a web page to local disk
    By Ron in forum Excel General
    Replies: 0
    Last Post: 04-26-2006, 12:40 PM
  6. [SOLVED] Save Worksheet As HTML Page
    By Excel in forum Excel General
    Replies: 1
    Last Post: 02-21-2006, 09:25 AM
  7. [SOLVED] How do I save excel as HTML (but not as a full web page)?
    By dls in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-17-2005, 08:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1