+ Reply to Thread
Results 1 to 11 of 11

how to get all .href value from web site

  1. #1
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Italy
    MS-Off Ver
    11
    Posts
    134

    how to get all .href value from web site

    https://www.aifa.gov.it/liste-dei-farmaci

    based this web site how to get all .csv link (see download)

    for example from table (0) is "https://www.aifa.gov.it/documents/20142/847339/elenco_medicinali_carenti.csv"

    if is possible iwthout IE object, but with api GET
    Last edited by sal21; 07-01-2025 at 03:58 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-02-2013
    Location
    Poland
    MS-Off Ver
    Excel 2013
    Posts
    368

    Re: how to get all .href value from web site

    Try it

    Please Login or Register  to view this content.
    OR

    Please Login or Register  to view this content.
    Last edited by hungt; 07-01-2025 at 06:06 AM.

  3. #3
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Italy
    MS-Off Ver
    11
    Posts
    134

    Re: how to get all .href value from web site

    Quote Originally Posted by hungt View Post
    Try it

    Please Login or Register  to view this content.
    OR

    Please Login or Register  to view this content.
    great bro! tks.

    only one tips for each table i need to get also a: Data ultimo aggiornamento:

    for example

    first table
    Data ultimo aggiornamento:18/06/2025 is for:
    is for https://www.aifa.gov.it/documents/20...quivalenti.csv

    second table
    Data ultimo aggiornamento:Aprile 2025 is for:
    https://drive.aifa.gov.it/farmaci/confezioni.csv
    https://drive.aifa.gov.it/farmaci/PA_confezioni.csv
    https://drive.aifa.gov.it/farmaci/atc.csv

    .... ecc
    Last edited by sal21; 07-01-2025 at 06:33 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    05-02-2013
    Location
    Poland
    MS-Off Ver
    Excel 2013
    Posts
    368

    Re: how to get all .href value from web site

    Try it

    Please Login or Register  to view this content.
    Last edited by hungt; 07-01-2025 at 07:42 AM.

  5. #5
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Italy
    MS-Off Ver
    11
    Posts
    134

    Re: how to get all .href value from web site

    Quote Originally Posted by hungt View Post
    Try it

    Please Login or Register  to view this content.
    GREAT !!!!!
    tks bro

  6. #6
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Italy
    MS-Off Ver
    11
    Posts
    134

    Re: how to get all .href value from web site

    Quote Originally Posted by hungt View Post
    Try it

    Please Login or Register  to view this content.
    i bro but when you test the code recive the alert such as in image
    Attached Images Attached Images

  7. #7
    Valued Forum Contributor
    Join Date
    05-02-2013
    Location
    Poland
    MS-Off Ver
    Excel 2013
    Posts
    368

    Re: how to get all .href value from web site

    1. If you want to show a message in this window, write. I'm old and I can't see this writing anymore - small print. I saved the image and enlarged it in Paint but the writing will be blurred, unclear.

    2. I don't know English, I don't know Italian. I won't type this message in Google Translate anyway. Question: why should I bother? You could have provided the content of this message.

    3. I don't have this message. You can see in the picture that the code hasn't finished yet because the MSGBOX window is still displayed. This proves that I took this picture while the code was running, not that I turned off the message and took a picture.
    Attached Images Attached Images

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: how to get all .href value from web site

    @hungt FYI
    It's actually a warning message that downloading website content can be harmfull to your computer. Do you wish to continue?
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  9. #9
    Valued Forum Contributor
    Join Date
    05-02-2013
    Location
    Poland
    MS-Off Ver
    Excel 2013
    Posts
    368

    Re: how to get all .href value from web site

    @bakerman2, thanks for the info. I always translate from and to English. But in this case I didn't have the patience to guess the words and type them into google translate. If the questioner had provided the text from the dialog box, copy/paste would have been enough.

  10. #10
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Italy
    MS-Off Ver
    11
    Posts
    134

    Re: how to get all .href value from web site

    Quote Originally Posted by hungt View Post
    1. If you want to show a message in this window, write. I'm old and I can't see this writing anymore - small print. I saved the image and enlarged it in Paint but the writing will be blurred, unclear.

    2. I don't know English, I don't know Italian. I won't type this message in Google Translate anyway. Question: why should I bother? You could have provided the content of this message.

    3. I don't have this message. You can see in the picture that the code hasn't finished yet because the MSGBOX window is still displayed. This proves that I took this picture while the code was running, not that I turned off the message and took a picture.
    I translate the allert windows:


    avviso di sicurezza WINDOWS
    to allow the website to provide personalized information it is necessary to download a small file called a cookie to your computer. download the file?
    Last edited by sal21; 07-02-2025 at 11:46 AM.

  11. #11
    Valued Forum Contributor
    Join Date
    05-02-2013
    Location
    Poland
    MS-Off Ver
    Excel 2013
    Posts
    368

    Re: how to get all .href value from web site

    It's your system, your data,
    You should be the one to decide. Don't ask anyone.

+ 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. VLOOKUP Formula to Update Map and Code based on Site name and site ID
    By gcolegcole42 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2022, 05:21 AM
  2. V Lookup formula to capture site code against a site name
    By gcolegcole42 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2022, 12:50 PM
  3. Replies: 2
    Last Post: 01-28-2022, 08:41 AM
  4. [SOLVED] Fetch href from within website
    By Exequiel3k in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-16-2019, 07:22 PM
  5. Pull href from Webpage
    By theskyscraper1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2017, 09:27 PM
  6. Site to Site concurrent call calculation
    By msknja in forum Excel General
    Replies: 5
    Last Post: 08-29-2010, 08:34 PM
  7. i made site! Good Site. Look now mysite!!!
    By joks3xxx in forum Excel General
    Replies: 0
    Last Post: 08-10-2006, 03:47 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