$ python youtube.py [visits] [youtubeLinks.txt] [minWatch] [maxWatch]
- visits The amount of visits per video
- youtubeLinks The file that contains the Youtube links; one link per line
- minWatch The minimum watch time in seconds
- maxWatch The maximum watch time in seconds
- python youtube.py 300 urls.txt 38 65
- Don't forget to have PySocks and Mechanize
pip install pysocks
pip install mechanize
Q: Why Does it Say "Traceback (most recent call last): File "youtube.py", line 5, in from subprocess import getoutput as shell ImportError: cannot import name getoutput" A: It means you a need a distribution of python 3.x.x