Skip to content

Instantly share code, notes, and snippets.

@rxdazn
Created June 10, 2013 13:41
Show Gist options
  • Save rxdazn/5748770 to your computer and use it in GitHub Desktop.
Save rxdazn/5748770 to your computer and use it in GitHub Desktop.
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests.get("https://api.stackexchange.com/2.1/search?page=1&pagesize=10&order=desc&sort=activity&tagged=pandas&site=stackoverflow").json()
{u'has_more': True, u'items': [{u'view_count': 43, u'title': u'pandas 0.10.1 to 0.11.0 is method', u'tags': [u'python', u'pandas'], u'last_activity_date': 1370868753, u'answer_count': 0, u'creation_date': 1370856736, u'score': 0, u'link': u'http://stackoverflow.com/questions/17020763/pandas-0-10-1-to-0-11-0-is-method', u'is_answered': False, u'owner': {u'display_name': u'Joop', u'profile_image': u'http://www.gravatar.com/avatar/d9895ef31b55b5105a4cba794050483a?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 65, u'link': u'http://stackoverflow.com/users/2107677/joop', u'accept_rate': 100, u'user_id': 2107677}, u'last_edit_date': 1370868753, u'question_id': 17020763}, {u'view_count': 23, u'title': u'Sorting Pandas Dataframe', u'tags': [u'pandas', u'dataframes'], u'last_activity_date': 1370866883, u'answer_count': 1, u'creation_date': 1370850900, u'score': 1, u'link': u'http://stackoverflow.com/questions/17019234/sorting-pandas-dataframe', u'is_answered': True, u'owner': {u'display_name': u'Nilani Algiriyage', u'profile_image': u'http://www.gravatar.com/avatar/a8e002bd422e3a47e2983fab09552949?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 58, u'link': u'http://stackoverflow.com/users/461436/nilani-algiriyage', u'accept_rate': 17, u'user_id': 461436}, u'last_edit_date': 1370856124, u'question_id': 17019234}, {u'view_count': 14, u'title': u'Update pandas DataFrame in stored in a Pytable with another pandas DataFrame', u'tags': [u'python', u'pandas', u'hdf5', u'pytables', u'dataframes'], u'last_activity_date': 1370863865, u'answer_count': 1, u'creation_date': 1370857470, u'score': 2, u'link': u'http://stackoverflow.com/questions/17020987/update-pandas-dataframe-in-stored-in-a-pytable-with-another-pandas-dataframe', u'is_answered': False, u'owner': {u'display_name': u'Elvin', u'profile_image': u'http://www.gravatar.com/avatar/62bf931c9ccac724976ce33708a1cc0e?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 11, u'link': u'http://stackoverflow.com/users/2358422/elvin', u'user_id': 2358422}, u'question_id': 17020987}, {u'closed_date': 1370858533, u'view_count': 14, u'closed_reason': u'off topic', u'title': u'linking data to a post', u'tags': [u'python', u'pandas'], u'migrated_to': {u'on_date': 1370858533, u'other_site': {u'site_state': u'normal', u'launch_date': 1246147200, u'site_type': u'main_site', u'aliases': [u'http://meta.stackexchange.com'], u'icon_url': u'http://cdn.sstatic.net/stackoverflowmeta/img/apple-touch-icon.png', u'markdown_extensions': [u'Prettify'], u'styling': {u'link_color': u'#3D3D3D', u'tag_foreground_color': u'#6F6F6F', u'tag_background_color': u'#E7E7E7'}, u'site_url': u'http://meta.stackoverflow.com', u'favicon_url': u'http://cdn.sstatic.net/stackoverflowmeta/img/favicon.ico', u'audience': u'meta-discussion of the Stack Exchange family of Q&A websites', u'api_site_parameter': u'meta.stackoverflow', u'high_resolution_icon_url': u'http://cdn.sstatic.net/stackoverflowmeta/img/[email protected]', u'related_sites': [{u'relation': u'chat', u'name': u'Meta Stack Overflow Chat', u'site_url': u'http://chat.meta.stackoverflow.com'}], u'logo_url': u'http://cdn.sstatic.net/stackoverflowmeta/img/logo.png', u'name': u'Meta Stack Overflow'}, u'question_id': 183812}, u'last_activity_date': 1370858014, u'answer_count': 0, u'creation_date': 1370858014, u'score': 0, u'link': u'http://stackoverflow.com/questions/17021133/linking-data-to-a-post', u'is_answered': False, u'owner': {u'display_name': u'Joop', u'profile_image': u'http://www.gravatar.com/avatar/d9895ef31b55b5105a4cba794050483a?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 65, u'link': u'http://stackoverflow.com/users/2107677/joop', u'accept_rate': 100, u'user_id': 2107677}, u'locked_date': 1370858533, u'question_id': 17021133}, {u'view_count': 38, u'title': u'Assigning column names from a list to a table', u'tags': [u'python', u'pandas'], u'last_activity_date': 1370855859, u'accepted_answer_id': 17018994, u'creation_date': 1370848604, u'score': 2, u'link': u'http://stackoverflow.com/questions/17018638/assigning-column-names-from-a-list-to-a-table', u'answer_count': 2, u'is_answered': True, u'owner': {u'display_name': u'Matt', u'profile_image': u'http://www.gravatar.com/avatar/47123a304d11a2b8408fbb7bf804837c?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 42, u'link': u'http://stackoverflow.com/users/2388218/matt', u'accept_rate': 62, u'user_id': 2388218}, u'question_id': 17018638}, {u'view_count': 25, u'title': u'Conversion of a .fits file', u'tags': [u'python', u'pandas', u'pyfits'], u'last_activity_date': 1370855093, u'accepted_answer_id': 17020315, u'creation_date': 1370844826, u'score': 1, u'link': u'http://stackoverflow.com/questions/17017802/conversion-of-a-fits-file', u'answer_count': 1, u'is_answered': True, u'owner': {u'display_name': u'Matt', u'profile_image': u'http://www.gravatar.com/avatar/47123a304d11a2b8408fbb7bf804837c?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 42, u'link': u'http://stackoverflow.com/users/2388218/matt', u'accept_rate': 62, u'user_id': 2388218}, u'question_id': 17017802}, {u'view_count': 30, u'title': u'Python and Pandas - Code works in 2.7 but not 2.6', u'tags': [u'python', u'matplotlib', u'pandas', u'web2py'], u'last_activity_date': 1370853725, u'answer_count': 0, u'creation_date': 1370853195, u'score': 0, u'link': u'http://stackoverflow.com/questions/17019805/python-and-pandas-code-works-in-2-7-but-not-2-6', u'is_answered': False, u'owner': {u'display_name': u'user1827631', u'profile_image': u'http://www.gravatar.com/avatar/16ed69710fe325a06a78854891356bf2?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 35, u'link': u'http://stackoverflow.com/users/1827631/user1827631', u'user_id': 1827631}, u'question_id': 17019805}, {u'view_count': 47, u'title': u'Need Sunday as the first day of the week', u'tags': [u'python', u'datetime', u'pandas', u'python-datetime'], u'last_activity_date': 1370835162, u'answer_count': 2, u'creation_date': 1370830329, u'score': 0, u'link': u'http://stackoverflow.com/questions/17016051/need-sunday-as-the-first-day-of-the-week', u'is_answered': True, u'owner': {u'display_name': u'user2458008', u'profile_image': u'http://www.gravatar.com/avatar/0eff9bca7bfe208e68cef032ededd657?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 1, u'link': u'http://stackoverflow.com/users/2458008/user2458008', u'user_id': 2458008}, u'last_edit_date': 1370835162, u'question_id': 17016051}, {u'view_count': 35, u'title': u'Extracting XML into data frame with parent attribute as column title', u'tags': [u'python', u'pandas', u'lxml'], u'last_activity_date': 1370815267, u'answer_count': 1, u'creation_date': 1370633671, u'score': 1, u'link': u'http://stackoverflow.com/questions/16991691/extracting-xml-into-data-frame-with-parent-attribute-as-column-title', u'accepted_answer_id': 16993660, u'is_answered': True, u'owner': {u'display_name': u'Jessi', u'profile_image': u'http://www.gravatar.com/avatar/6c77f4d2d81be0774483548a52ade9ef?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 32, u'link': u'http://stackoverflow.com/users/2437407/jessi', u'accept_rate': 100, u'user_id': 2437407}, u'last_edit_date': 1370800493, u'question_id': 16991691}, {u'view_count': 46, u'title': u'Missing data in pandas.crosstab', u'tags': [u'python', u'pandas'], u'last_activity_date': 1370803291, u'answer_count': 1, u'creation_date': 1370719490, u'score': 4, u'link': u'http://stackoverflow.com/questions/17003034/missing-data-in-pandas-crosstab', u'is_answered': True, u'owner': {u'display_name': u'norecces', u'profile_image': u'http://www.gravatar.com/avatar/a45d358cc90b5fd22784dabb57bef062?d=identicon&r=PG', u'user_type': u'registered', u'reputation': 38, u'link': u'http://stackoverflow.com/users/1879041/norecces', u'user_id': 1879041}, u'last_edit_date': 1370803291, u'question_id': 17003034}], u'quota_max': 300, u'quota_remaining': 297}
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment