Sample code:
import requests
api_key = "Your API Key"
url = "https://api.scrapingdog.com/linkedin"
params = {
"api_key": api_key,
"type": "profile",
"linkId": "Linkedin Id",
"private": "true"
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
- initialise proper environment variable for your api key.
- If scraping dog is not working then initialise other api.
- After implementing scraping, compare the image using core/image_similarity.py