This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from letmecrawl import letmecrawl | |
| for proxy in letmecrawl(): | |
| response = requests.get( | |
| url='http://ifconfig.co/json', | |
| proxies={'http': str(proxy)} | |
| ) | |
| print response.content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from letmecrawl import letmecrawl | |
| for proxy in letmecrawl.letmecrawl(): | |
| response = requests.get( | |
| url='http://ifconfig.co/json', | |
| proxies={'http': str(proxy)} | |
| ) | |
| print response.content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from letmecrawl import letmecrawl | |
| for proxy in letmecrawl.letmecrawl(): | |
| response = requests.get( | |
| url='http://ifconfig.co/json', | |
| proxies={'http': str(proxy)} | |
| ) | |
| print response.content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from letmecrawl import letmecrawl | |
| for proxy in letmecrawl.letmecrawl(): | |
| response = requests.get( | |
| url='http://ifconfig.co/json', | |
| proxies={'http': str(proxy)} | |
| ) | |
| print response.content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from letmecrawl import letmecrawl | |
| for proxy in letmecrawl.letmecrawl(): | |
| response = requests.get( | |
| url='http://ifconfig.co/json', | |
| proxies={'http': str(proxy)} | |
| ) | |
| print response.content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from vowpalwabbit import pyvw | |
| def to_vw(clf, text, str_labels): | |
| vw_example = str('{} |f {} '.format(str_labels, text)) | |
| return clf.example(vw_example) | |
| clf = vw = pyvw.vw( | |
| loss_function='logistic', oaa=2, | |
| link='logistic', raw_predictions='output.txt' | |
| ) |