Created
July 20, 2016 15:48
-
-
Save zjyExcelsior/b7356150a899a9252683d6012d415c48 to your computer and use it in GitHub Desktop.
`UCloud`活动 -> `UCanUup`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import requests | |
URL = '''http://106.75.28.160/UCloud.txt#rd?sukey=3997c0719f1515206fcb3e208377fb04c629d5538daaa1eb8062a8dd668ceb37a14e5b49042e5f785681b5d06d1cbc61''' | |
def count_this(word_to_find): | |
r = requests.get(URL) | |
return r.content.count(word_to_find) | |
if __name__ == '__main__': | |
print count_this('UCanUup') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment