-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Hi,
First of all, thanks for this amazing code.
I'm trying to use it with a proxy but 100% of times it says that the IP is blacklisted.
It happens also to you?
My code:
import requests
from pylinkedin.scraper import LinkedinItem
from pylinkedin.utils import CustomRequest
while True:
url = "http://gimmeproxy.com/api/getProxy"
querystring = {"get":"true","supportsHttps":"true","anonymityLevel":"1", "protocol":"http"}
r = requests.request("GET", url, params=querystring)
res = r.json()
proxy = res['curl']
c = CustomRequest(list_proxies=[{'https':proxy}])
try:
LinkedinItem(url = 'https://www.linkedin.com/in/kennethreitz')
except:
pass
Metadata
Metadata
Assignees
Labels
No labels