How to copy all links displayed on a specific site?

Hi Experts,

I would like to copy all links displayed on a specific page, including sub-links.
For example the following
https://howto.caspio.com/tech-tips-and-articles/
How can I accomplish that?
LVL 5
bfuchsAsked:
Who is Participating?
 
abbas abdullaCommented:
Hi,
I suggest you simple solution using google sheets, open new google sheet and paste this function =IMPORTXML("https://howto.caspio.com/tech-tips-and-articles/","//a/@href")

It will automatically return all the links in the webpage.
2
 
Travis MartinezSmoke JumperCommented:
Export/Print the page to PDF.  The links should be embedded in the PDF doc.
0
 
bfuchsAuthor Commented:
Hi,

I need it to be in a notepad file, with each link on a separate line.

Thanks,
Ben
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
bfuchsAuthor Commented:
Hi,

Sorry for asking this but I never used google sheets before.
Would you be able to guide me?

Thanks,
Ben
0
 
Travis MartinezSmoke JumperCommented:
I just tried abbas abdulla's method and very cool.

Just sign into Google, if sheets isn't listed as an app go to "Docs".  Once at Docs drop down the menu and select "Sheets".

I was going to suggest Cygwin and using "wget" but the Sheets method is much cleaner.
0
 
bfuchsAuthor Commented:
Hi Experts,

This seems like working!
Just wondering whats the definition of "//a/@href"?

Thanks,
Ben
0
 
bfuchsAuthor Commented:
Thank you experts!
0
 
abbas abdullaCommented:
"//a/@href" is xpath syntax in google sheet and in HTML it means hyperlink tag. With importxml function you are just telling Google sheet import everything has this tag from the website.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.