From c313861db1d15616ce76c4b2414ee87f09281b74 Mon Sep 17 00:00:00 2001 From: Pater92 Date: Fri, 2 Dec 2016 18:20:55 +0100 Subject: [PATCH] Update pypi.py this line of code is useless because it's execution sends us back to the starting page --- examples/pypi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/pypi.py b/examples/pypi.py index 5763dbd..64024b3 100644 --- a/examples/pypi.py +++ b/examples/pypi.py @@ -17,7 +17,8 @@ def download_mechanize(): browser.set_handle_robots(False) browser.open("http://pypi.python.org/pypi") - browser.follow_link(text="Package Index", nr=0) + #browser.follow_link(text="Package Index", nr=0) + #useless command, it loops us back to the starting page browser.select_form(name="searchform") browser.form["term"] = "mechanize" browser.submit()