sloria / TextBlob

Simple, Pythonic, text processing--Sentiment analysis, part-of-speech tagging, noun phrase extraction, translation, and more.
https://textblob.readthedocs.io/
MIT License
9.05k stars 1.13k forks source link

fea: added proxy solution for urllib requests. #393

Closed disputas closed 2 years ago

disputas commented 2 years ago

Added proxy solution for urllib requests. Reusing nltk.set_proxy() solution.

This idea created by this issue: https://stackoverflow.com/questions/34036158/setting-proxy-for-textblob#37610845.

I saw that TextBlob library is using NLTK in some modules. Please double check license of usage of this solution. I have copied original author "license" text.: image

New module: textblob -> proxy.py

Test file: tests -> test_proxy.py