Guest User

Untitled

a guest
Oct 16th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. serch_word = '茶'
  2. utftext = serch_word.encode('utf-8')
  3. urlencode = urllib.parse.quote(utftext, '')
  4. result = mastodon.search('https://mstdn.jp/api/v1/search?q=' + urlencode)
  5. print(result)
  6.  
  7. {'hashtags': [], 'accounts': [], 'statuses': []}
  8.  
  9. https://${MASTODON_HOST}/api/v1/search?q=${keyword}
Add Comment
Please, Sign In to add comment