-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loop on multiple Analyze website write on same variable object #49
Comments
Same problem guyz ! |
I fixed the issue by doing this: At the end of the method, before "return output" just write: Everything will be cool ! |
Hi Ghezaielm, Thanks for your quick feedback..by the meantime, I used another workaround, see below:
And it is convenient if you want parallelize you crawl by using I have 8 cores /20 threads CPU, it is damn fast...I crawled 20k websites in few hours !!
(PS: sorry I did not how to make the spaces on github quote for code) |
Did you submit the correction on github ? |
Ah, right. I'm putting this on my roadmap for v4.1. 👍 |
Hi,
I want to analyze multiple website by loop on a list and write the results in a json file.
I notice that when we crawl 2 differents website and we store the output in two differents variables (let's say A and B), the second variable, B, gets incremented of A...and so on for other crawls.
It is like the
analyse()
write on a the same object !!And it gets even weirder when I delete A and B with a
del A,B
, theanalyse()
function do not re-run, it recovers the old results from nowhere !!I tried to use function
% reset
to erase the memory...but still recover the results from local memory !!!here is an example:
the A has 90 pages and B should have only 10 pages, but it has 90 from A + its own 10..
how to avoid this ?
Why this erratic behavior ?
regards,
karim.m
The text was updated successfully, but these errors were encountered: