Comments (5)
Same problem guyz !
from python-seo-analyzer.
I fixed the issue by doing this:
Go to the ("Manifest") class in the implementation and look for the "Analyze" method.
At the end of the method, before "return output" just write:
Manifest.clear_cache()
Everything will be cool !
from python-seo-analyzer.
Hi Ghezaielm,
Thanks for your quick feedback..by the meantime, I used another workaround, see below:
import os
for website in list_of_website:
----file_name = # whatever name file you want
----command='seoanalyze {} -f json > "{}"'.format(website,file_name)
----returned_value = os.system(command)
----print(str(returned_value)+' name= '+file_name+' '+website
)
And it is convenient if you want parallelize you crawl by using ThreadPoolExecutor
I have 8 cores /20 threads CPU, it is damn fast...I crawled 20k websites in few hours !!
with concurrent.futures.ThreadPoolExecutor(max_workers=80) as executor:
#48 Start the load operations and mark each future with its URL
future_to_url = {executor.submit(analyze_SEO, url): url for row in list_website}
#print(future_to_url)
for future_url in concurrent.futures.as_completed(future_to_url):
url_completed = future_to_url[future_url]
try:
data = url_completed .result()
if data!=None:
print(data)
except Exception as exc:
print('%r generated an exception: %s' % url, exc)
(PS: sorry I did not how to make the spaces on github quote for code)
from python-seo-analyzer.
Did you submit the correction on github ?
from python-seo-analyzer.
Ah, right. I'm putting this on my roadmap for v4.1. 👍
from python-seo-analyzer.
Related Issues (20)
- Trivial examples of scripts using seoanalyzer
- utf-8' codec can't decode bytes in position 31608-31609
- UnicodeEncodeError: 'ascii' codec can't encode characters when calling self._output(request.encode('ascii')) HOT 2
- UnicodeEncodeError when calling print(output_from_parsed_template) for some websites HOT 1
- AttributeError: module 'urllib3' has no attribute 'PoolManager'
- 'PoolManager' not found !!!!! HOT 6
- ImportError: cannot import name 'PoolManager' from 'urllib3' HOT 2
- Keyword Analysis HOT 2
- Python 3.8.5 not working at all HOT 2
- No file gets output? HOT 1
- Newbie Issue HOT 1
- Dictionary is not really usable
- ..
- ModuleNotFoundError: No module named 'lxml' HOT 2
- Possible error with sitemap crawling HOT 2
- urllib3.exceptions.MaxRetryError
- Trying to pull Docker image sethblack/python-seo-analyzer gives error "repository does not exist" HOT 1
- When trying to build Dockerfile, we get error "Error: Please make sure the libxml2 and libxslt development packages are installed." HOT 1
- Selenium Implementation For Website that uses JavaScript
- Invalid Syntax for all commands
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 python-seo-analyzer.