Comments (3)
error gone by changing code in function:
from urllib.request import Request, urlopen
# Extrae los correos de una única URL
def extractOnlyUrl(url):
try:
print ("Searching emails... please wait")
count = 0
listUrl = []
req = Request(url, headers={'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686) Gecko/20071127 Firefox/2.0.0.11'})
conn = urlopen(req)
edit-removed
edit-I think script does not detect .co.in or similar domain emails. only .com are detected. will try again tomorrow
from email-extractor.
Excelente @apdd2003 Regards
from email-extractor.
@apdd2003
This is probably because of mod_security or some similar server security feature which blocks known spider/bot user agents (urllib uses something like python urllib/3.3.0, it's easily detected)
Fix - I have added the UserAgent module to solve this problem. regards
from email-extractor.
Related Issues (18)
- googlesearch module not found HOT 6
- Choose diferent countries HOT 2
- Add a list of phrases to search
- ImportError: cannot import name 'search' HOT 1
- Error extracción
- ERROR when executing the script HOT 5
- [email protected] HOT 1
- Email Extractor HOT 1
- google search HOT 1
- Output to Excel (Including all URLs searched) HOT 1
- Issue with fouth option
- error when building docker HOT 1
- HTTP Error 503: Service Unavailable HOT 1
- Extractor is grabbing scaled images and some ideas HOT 5
- Unknown URL type and sites that hang scraper HOT 10
- Google Search Error - Ubuntu 18.04 HOT 3
- Run the Email Extractor HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from email-extractor.