Skip to content
Instagram Scrapper for FreePascal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
test
.gitignore
README.md
basehttpclient.pas
fphttpclientbroker.pas
indyhttpclientbroker.pas
instagramscrapper.pas
synapsehttpclientbroker.pas

README.md

fp-instagramscrapper

Instagram Scrapper for FreePascal

The demo shows an example of getting the values you need https://github.com/Al-Muhandis/fp-instagramscrapper/tree/master/demo

With the TInstagramParser class, you can get a bunch of other properties, media content, comments, stories, highlights etc.

You must add fphttpclientbroker or synapsehttpclientbroker or indyhttpclientbroker unit to uses block and add TbFPHTTPClient.RegisterClientClass or TSynapseHTTPClient.RegisterClientClass or TIndyHTTPClient.RegisterClientClass before TInstagramParser instance creation. For example, in initialization section

uses
  ... ..., 
  fphttpclientbroker;
  
// ... ... ...

initialization
  TbFPHTTPClient.RegisterClientClass; // Native FCL HTTP Client    

In case of using the synapse network components You should not forget to add in the dependency the laz_synapse package and ssl_openssl unit from the same package. In case of using the Indy 10 network components You should not forget to add in the dependency the indylaz package and use common recommendation for Indy 10 in FPC.

Except for the need to use a proxy, it is recommended to use the native HTTP client class. At the moment synapse works perfectly with proxy in Windows, Indy 10 works in both Windows and Linux, but it is very complex and with a lot of its nuances.

Suggestions and improvements are welcome.

You can’t perform that action at this time.