Go to the top conference is a very popular live answer game recently, open at designated time every day, 12 questions, 3 options for each question, 10 seconds to answer, all pass through the share of the bonus (each bonus of 50,000 yuan or 100,000 yuan), invite friends can get resurrection qualification. Many other similar games, such as Toutiao, Inke and Huajiao Live, have launched their own quiz games. The ancestor of this model is HQ Trivia, which was launched in the United States in August last year.

You might be thinking, isn’t this the Happy Dictionary on your phone? That makes money, too? Yes, that’s it.

I played a few games these days, after observation found that the number of people between three hundred thousand to five hundred thousand, now the Internet traffic is so expensive, spend tens of thousands of dollars can bring so many users in such a short time, quite worth ah. In his New Year’s Eve speech, Luo quoted Drucker: “The greatest compliment to innovation is when people say – it’s so obvious, why didn’t I think of it?” I think live answering is such a phenomenon-level innovation product, and there are many profit models worth exploring.

While the priest climbs a post, the devil climbs a ten. let’s see what we can Hack.

There’s no time to search for a topic (unless you’ve been single for 40 years), and there’s no shortage of cheating strategies. The easiest way is to play with a group of people, which can take advantage of the network delay to have a few more seconds of reading time. If you meet someone who can’t read the question, you can choose separately, so that you only need 3^12= 531,441 phones to complete the game. You can also use two devices, one mobile phone to wait for the host to read the question, the other baidu voice search can also find out the answer, but feel that the speed is relatively slow.

So how should programmers play?

First use WDA to get a screen shot. WDA is a set of iOS testing framework developed by Facebook. A few days ago, I saw that everyone was using wechat “Tiaotiaotiao” plug-in, so I deliberately went to understand it, and found that it can also be used in the summit conference.

After that, crop out the location of the topic (it may need to be adapted to the mobile phone screen), then call the open OCR interface to read and fetch the text, and finally call the search engine, and the effect of the GIF image can be achieved. This environment is iOS + Mac, if it is Android there should be a more convenient way.

In fact, the original idea was to complete all the automatic search + selection answers. The idea was OCR questions and candidate answers, which were composed of three combinations and thrown into Baidu or Google search, and then the results of which combination appeared the most times would be selected. This is not the case after trying a few questions, such as “What does a camel’s hump store?” in the picture above. “Probably most people think it’s water, so it comes up the most often, which is actually the wrong answer.

Finally, there are two pain points:

  1. The free OCR interface is called a limited number of times, so you can’t always go to the screen to identify, just wait for the problem to run the program.
  2. The e official is also very routine, some problems can not search. Like this:

Attached code, I wonder if you have a better idea:

# python3
import wda
import io
import urllib.parse
import webbrowser
import requests
import time
import base64
from PIL import Image

c = wda.Client()
# Baidu OCR API
api_key = ' '
api_secret = ' '
token = ' '


while True:
    time.sleep(0.5)
    c.screenshot('1.png')
    im = Image.open("./1.png")
    region = im.crop((75.315.1167.789)) # iPhone 7P
    imgByteArr = io.BytesIO()
    region.save(imgByteArr, format='PNG')
    image_data = imgByteArr.getvalue()
    base64_data = base64.b64encode(image_data)
    r = requests.post('https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic',
                      params={'access_token': token}, data={'image': base64_data})
    result = ' '
    for i in r.json()['words_result']:
        result += i['words']
    result = urllib.parse.quote(result)
    webbrowser.open('https://baidu.com/s?wd='+result)
    break
Copy the code

Source: livc.io/blog/204