0

我在网上找到了一些 Instagram Auto Like 脚本的代码。我当前的问题是这个错误 http://s1.postimg.org/griyd3pjz/code_sample.png 你看到的错误是第一个被涂黑的键相关代码是:

# Function to encode the string with the IP and ID of the picture then like it
def encodeAndRequest(id):

    c = pycurl.Curl()
    signature = hmac.new(str(profile['********************************']['********************************']), profile['IP'], sha256).hexdigest()
    header = '|'.join([profile['IP'], signature])
    header = ["X-Insta-Forwarded-For: " + header]

    url = INSTAGRAM_API + id + "/likes"
    c.setopt(c.URL, url)
    c.setopt(c.POSTFIELDS, "access_token=" + str(profile['CREDENTIALS']['ACCESS_TOKEN']))
    c.setopt(pycurl.HTTPHEADER, header)
    c.perform()

    response = str(c.getinfo(c.HTTP_CODE))
    c.close()

    return response

任何关于如何解决它的想法将不胜感激

4

0 回答 0