Home
Discussions
Community Q&A
How can i loop the Get Page Operator?
RaffiH
For my bachelor thesis I need to get the text of many websites. I know how I get the text of just one page of the website but I need it for every page of the website. How can I achieve that?
Thank you very much in advance and stay healthy!
Find more posts tagged with
AI Studio
Loops + Branches
Accepted answers
All comments
sgenzer
hi
@RaffiH
this is classic webscraping. So the first question I always have to ask is: what is the legality of scraping these pages? Are they under the public domain, or are they proprietary? If it is the latter, you will most likely be violating their Terms of Service.
Scott
RaffiH
@sgenzer
Thank you very much for your answer!
I want to analyze the sentiment of different company websites. Also the words they use the most.
This would be a company website I would like to analyze:
https://www.breeze-technologies.de/
.
sgenzer
hi
@RaffiH
oh in that case why don't you just contact the company on their website and ask their permission? That way you can be sure.
Scott
RaffiH
Hi
@sgenzer
okay and after I've done that? What do I have to do next?
Rafael
sgenzer
just use Get Page on the URLs
RaffiH
But if I not want just the first page? How can I get every Page from an URLs
Thank you very much for your help!
sgenzer
@RaffiH
then you're in a web crawling scenario - something that we generally do not condone. If you are 100% sure that you have the legal and ethical go-ahead to crawl the site, I'd use a python library like scrapy
https://scrapy.org
RaffiH
Thank you very much
@sgenzer
but why is it not possible to loop Get Page? I just need the text on the website.
sgenzer
oh sure you can use Get Page inside a Loop operator, but you'll need to loop over values in an ExampleSet with the URLs in it. If you have a nice list of all the URLs of the site, that will work fine.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)