How to Scrape Pappers.fr Using HAR File

In this tutorial, you will learn how to obtain all the company profiles on Pappers.fr without using any scraping software, legally, by utilizing the HAR file from your browser.

*This video is in French, but you can enable subtitles.

Step 1: Record the HAR File

The steps on Firefox :

  1. Navigate to Pappers.fr :
    • Go on pappers.fr
    • Search for what you want to scrape.
    • Go to page number 2 of the results.
  2. Open Developer Tools:
    • Press F12 to open the Developer Tools.
    • Go to the “Network” tab.
  3. Enable Log Preservation:
    • Select “Persist log” on the setting to keep the network logs even when navigating to different pages.
  4. Filter URLs:
    • On “Filter URLs” put : pappers.fr/v2/recherche
  5. Navigate Through the Pages:
    • Go back to page number 1 and go to all the pages you want to scrape.
  6. Download the HAR File:
    • Once you have navigated through all the pages, right-click on the network requests list and select “Save All As HAR”.

Step 2: Analyze the HAR File with Our Tool


  • Visit the Tool:
  • Upload the HAR File:
    • Select and upload the HAR file you just saved.
  • Enter URL Part:
    • In the field “Enter a part of the URL“, input:
pappers.fr/v2/recherche
  • Enter JSON Selectors:
    • In the field “Enter XPath or CSS selectors, one per line“, input the following:
resultats

Analyze the HAR File:

  • Click on the button “Search”.

Export the Results:

  • Once the analysis is complete, you will see the results.
  • You can download the results as a CSV file by clicking on “Download CSV Results”.

Leave a Reply

Your email address will not be published. Required fields are marked *