theriley106 / SneakerBotTutorials

Open Source SneakerBot created as a supplement to my "Creating a Sneaker Bot in Python" Youtube Series
https://www.youtube.com/playlist?list=PL3fpqcQTK0f9sACDQstvjxbHzD1L_gr__
MIT License
621 stars 137 forks source link

UnboundLocalError: local variable 'info' referenced before assignment #5

Closed jeromesteve202 closed 6 years ago

jeromesteve202 commented 6 years ago

I cloned the latest project and I am able to run the app.py. I made sure to change the BeautifulSoup so that it uses an html parser. However, after making those changes I am getting an error that says UnboundLocalError: local variable 'info' referenced before assignment. Is there a problem with the code or am I doing something wrong?

mdbkio commented 6 years ago

I got the same error. Need to change BeautifulSoup([your markup]) to : BeautifulSoup([your markup], "lxml")

osbornedesign commented 6 years ago

Where do you make that change?

jeromesteve202 commented 6 years ago

Yea, that's what I was going to ask because I don't know where exactly I have to change that.

theriley106 commented 6 years ago

Hey guys! So sorry about that. I added the ability to add proxies as System arguments and didn't document anything in the README.

I fixed the code so that info is defined before looking for sys arguments.

@masdafmafia Thanks for the heads up! I fixed this as well.

I'm going to go ahead and close this issue, but let me know if you guys have any more issues.

Best, Christopher