Coder Social home page Coder Social logo

Comments (5)

 avatar commented on May 20, 2024

Same problem guyz !

from python-seo-analyzer.

 avatar commented on May 20, 2024

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.

mayouf avatar mayouf commented on May 20, 2024

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.

mayouf avatar mayouf commented on May 20, 2024

Did you submit the correction on github ?

from python-seo-analyzer.

sethblack avatar sethblack commented on May 20, 2024

Ah, right. I'm putting this on my roadmap for v4.1. 👍

from python-seo-analyzer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.