本文整理汇总了Python中twitter.Twitter.hacked_search方法的典型用法代码示例。如果您正苦于以下问题:Python Twitter.hacked_search方法的具体用法?Python Twitter.hacked_search怎么用?Python Twitter.hacked_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类twitter.Twitter
的用法示例。
在下文中一共展示了Twitter.hacked_search方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Twitdao
# 需要导入模块: from twitter import Twitter [as 别名]
# 或者: from twitter.Twitter import hacked_search [as 别名]
#.........这里部分代码省略.........
return user
def friendships_destroy(self, **params):
#user_id, screen_name, include_entities
user = self.twitter.api_call('POST', 'friendships/destroy', params)
return user
def friendships_show(self, **params):
#source_id, source_screen_name, target_id, target_screen_name
return self.twitter.api_call('GET', 'friendships/show', params)
#Account Resources
def account_verify_credentials(self, **params):
#include_entities
return self.twitter.api_call('GET', 'account/verify_credentials', params)
def account_rate_limit_status(self):
return self.twitter.api_call('GET', 'account/rate_limit_status')
def account_update_delivery_device(self, device, **params):
#device(sms, none), include_entities
return self.twitter.api_call('POST', 'account/update_delivery_device', params)
def account_update_profile_colors(self, **params):
#profile_background_color, profile_text_color, profile_link_color, profile_sidebar_fill_color, profile_sidebar_border_color, include_entities
return self.twitter.api_call('POST', 'account/update_profile_colors', params)
def account_update_profile_image(self, image, **params):
#include_entities
#image-> ('param_name', file_name, image_content)
return self.twitter.api_call('POST', 'account/update_profile_image', params, [image])
def account_update_profile_background_image(self, image, **params):
#tile, include_entities
#image-> ('param_name', file_name, image_content)
return self.twitter.api_call('POST', 'account/update_profile_background_image', params, [image])
def account_update_profile(self, **params):
#name, url, location, description, include_entities
return self.twitter.api_call('POST', 'account/update_profile', params)
#Block Resources
def blocks_create(self, **params):
#user_id, screen_name, include_entities
user = self.twitter.api_call('POST', 'blocks/create', params)
return user
def blocks_destroy(self, **params):
#user_id, screen_name, include_entities
user = self.twitter.api_call('POST', 'blocks/destroy', params)
return user
def blocks_blocking(self, **params):
#page, include_entities
blocking = self.twitter.api_call('GET', 'blocks/blocking', params)
return blocking#user list
#Spam Reporting resources
def report_spam(self, **params):
#user_id, screen_name, include_entities
user = self.twitter.api_call('POST', 'report_spam', params)
return user
#Saved Searches Resources
def saved_searches(self):
return self.twitter.api_call('GET','saved_searches')
def API_limit_rate(self):
return self.twitter.api_call('GET','account/rate_limit_status')
def saved_searches_show(self, id):
return self.twitter.api_call('GET','saved_searches/show/%s' % id)
def saved_searches_create(self, **params):
#query
return self.twitter.api_call('POST','saved_searches/create/%s', params)
def saved_searches_destroy(self, id):
return self.twitter.api_call('POST','saved_searches/destroy/%s' % id)
#Search API
def search(self, q, **params):
#lang, locate, rpp, page, since_id, until, geocode, show_user, result_type
timeline = self.twitter.search_api_call(q, **params)
return timeline
#Hacked Search
def hacked_search(self, q, since_id=None, page=None):
return self.twitter.hacked_search(q, since_id, page)
#Hacked
def hacked_following_followers_of(self, user_id):
# Also followed by.
return self.twitter.hacked_following_followers_of(user_id)
def hacked_follows_in_common_with(self, user_id):
# You both follow.
return self.twitter.hacked_follows_in_common_with(user_id)