Use Python to create a simple Weibo brusher

高洛峰
Release: 2016-10-19 11:57:10
Original
1721 people have browsed it

Haha, I have to admire the power of Python. You can make a simple Weibo browser with just a few lines of code.

import webbrowser as webimport timeimport os

count=0while count count=count+1 #The blog you want to brush
web.open_new_tab("http://www.cnblogs.com/smiler/archive/2010 /04/20/1716418.html#2856973")
time.sleep(1)else:
os.system('taskkill /F /IM 360se.exe')


You can try it, is there any It's very powerful. I just learned Python and used it for practice. I mainly learned three knowledge points here:

1. Python's threads are originally under the time module

2. Python calls the cmd command line. It turns out to be so simple, compared to C# It’s much simpler

3. Just open the webpage and it’s OK

Sincerely it’s powerful, you must learn it well!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template