media_crawler | metadata indexing and searching of video containers | Search Engine library
kandi X-RAY | media_crawler Summary
kandi X-RAY | media_crawler Summary
metadata indexing and searching of video containers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of media_crawler
media_crawler Key Features
media_crawler Examples and Code Snippets
Community Discussions
Trending Discussions on media_crawler
QUESTION
I wrote a program to crawl a website and because of amount of link that I have to crawl I use Python multiprocessing. when my program starts everything is fine and my exceptions log very well but after 2-3 hours 2-3 or all 4 child processes use 0% CPU and cause I didn't use async my last line of the program which is log the "Done!" String does not execute! in the target function of my process pool I wrap all the code with a try/except statement so my process shouldn't be crash and if it crash I have to see some output in nohup.log file (I run this script with nohup myscript.py & in the background!). I dont know what's happening and it's really made me angry.
I searched in the internet and see someone told that use my_pool.close() after the pool statement (cause he said child processes not necessarily close after their tasks) but it didn't work either :(
my code is about 200 lines length so I cant put them all here! I summarize it for you. if you need detail in some section just tell me
...ANSWER
Answered 2019-May-29 at 11:14Tnx for the comments. I made some experiments and this is what is that I found:
as Sam Mason said the rate of request that goes to the site is high and the way I fix this is to put an 1 sec wait in every request and now the program ends find
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install media_crawler
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page