Golang, Python multi-thread brush ticket, brush is very cool.

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Http://live.sports.ifeng.com/match/552.html

See this page need to vote to support the Chinese team.

Write the ticket directly in the go language.

package mainimport ("fmt""net/http")func vote(a chan int) {for i := 0; i <= 1000; i++ {http.Get("http://survey.news.ifeng.com/accumulator_ext.php?callback=jQuery1820030119983945041895_1490671752116&key=customLiveaway_support_552&format=js&_=1490671777810")}a <- 0}func main() {a := make(chan int, 30)for i := 0; i < 30; i++ {go vote(a)}for b := range a {fmt.Println(b)}}

The above code can brush 3W votes.

Casually, I brushed it close to the 30W ticket.

Python uses urllib, the line code is not put on. A few lines of code things.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.