Check how many times your url was shared on Facebook and VK.
You need a Facebook user token to count shares on Facebook. If no token provided, shares for VK only will be calculated. Facebook documentation on URL API.
The script can separately get shares for url with parameters, e.g. for example.com you can also count:
- example.com/?res=1
- example.com/?res=2
- example.com/?res=3
- etc.
The command line arguments syntax is as follows: url [parameter] [max number of url with parameters (not included)] [FB token], e.g.: python3 count_shares.py https://example.com res 4 EAAaVWRTd...