Web Crawl an Online DB

I am working on a protocol that will allow me to search an online database and will pull the website information (or even the hyperlink) to a table in pipeline pilot for a list of molecules. I have looked in the components tab on pipeline pilot and stumbled across the web crawl component.. Would this be a solution to my problem, or would it be something else? Many thanks to someone that can help out!

Answers 1
CS
CS 2022-12-17

Hi @GB 


Yes, the Web Site Crawler component should suit your needs.

The only (minor) warning I would give about using this component is that if you have multiple Pipeline Pilot servers at your site, they may not all have the Documents and Text Collection (to which this component belongs) installed.  So, if you wanted to distribute your protocol to colleagues using other servers you may have to take this into consideration.


The component also creates properties that are commonly used in Documents and Text Collection protocols that you may not need, but that doesn't prevent you from using it - there is lots of useful information on the data records coming off of the component like the URLs and file names. of the resources found.  One of the Documents and Text properties created is called DocBody, which contains the raw text of the resource found (e.g. the text content of a PDF), which could come in handy.


I have attached a protocol that demonstrates a fairly simple use of the component.  The protocol creates a "web site" hosted on the Pipeline Pilot server having a number of PDFs.  It finds those PDFs and creates a table with links to the PDF document.  You can get more sophisticated with the parameters on the component using prefixes, crawling depths, etc.


If you ever find yourself without the Documents and Text Collection, you could also use the Run Program (on Server) component in conjunction with widely available command line tools like "wget" and "curl", which are capable of the same tasks as the Web Site Crawler component.  These programs are commonly present on Linux systems, but you can also find versions for Windows.


Also, other languages that Pipeline Pilot integrates with like R and Python have packages for web crawling that you could install on the Pipeline Pilot server and use in conjunction with the R Custom Script or the Python Script and Python (on Server) components.


Hope that helps.  Please post here if you have further questions about the Web Site Crawler component and/or the attached protocol.


Best Regards,

Craig


comment imagecomment image