Browse Source

Merge pull request #54 from muyun001/feature/修改example

修改example举例
崔庆才丨静觅 5 years ago
parent
commit
74ea5816d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/example.py

+ 2 - 2
examples/example.py

@@ -8,7 +8,7 @@ sys.path.insert(0, dir)
 
 
 
 
 def get_proxy():
 def get_proxy():
-    r = requests.get('http://127.0.0.1:5000/get')
+    r = requests.get('http://127.0.0.1:5555/random')
     proxy = BeautifulSoup(r.text, "lxml").get_text()
     proxy = BeautifulSoup(r.text, "lxml").get_text()
     return proxy
     return proxy
 
 
@@ -24,6 +24,6 @@ def main():
     html = crawl('http://docs.jinkan.org/docs/flask/', proxy)
     html = crawl('http://docs.jinkan.org/docs/flask/', proxy)
     print(html)
     print(html)
 
 
+
 if __name__ == '__main__':
 if __name__ == '__main__':
     main()
     main()
-