Crawl and download data from webpage (PHP)

Job ID: 34693247

Budget: $30 – $250 USD

task is to write application that crawl/scrap all data from page https://ekrs.ms.gov.pl/rdf/pd/search_df

there is one search field where you put company ID (KRS)
i want to scrap ids from 0000606070 to 0000923690

after searching there is detailed view of company
in that view you need to select "Roczne sprawozdanie finansowe" from option field
after that the table with company documents will refreash
the task is to download all the documents
the last column called "Akcje" has "Pokaż szczegóły",
after clicking that you will see additional layer with details of document
and there is button "Pobierz dokumenty" - to download the document

the documents should be stored in folders by company
folder should have name by pattern :
"0000606070 MULTI-CORP SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ"

and files in that folder should have name:
(date) (oryginal name)
date - the date from document details "Data sporządzenia dokumentu"
oryginal name - as it will come from server

All folders and documents you will pack to zip archive to send me
you will start work with small sample (few companies)
and then if everythink will be ok you do all companies

there is no captcha but
main problem is that server will block your IP after one search (need to change IP)

finally you will provide mi script in PHP that scrap the webpage and save data in file
script will have 2 parameters as input: $krs-range-from , $krs-range-to
script should return all files from those companies
Related categories: PHP Data Processing Web Scraping Web Crawling Core PHP