Skip to content

Always blocked #7

@arkkanoid

Description

@arkkanoid

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions