https://github.com/csu/pyquora
A Python module for fetching and parsing data from Quora.
https://github.com/csu/pyquora
parsed-data python python-library quora statistics
Last synced: 3 months ago
JSON representation
A Python module for fetching and parsing data from Quora.
- Host: GitHub
- URL: https://github.com/csu/pyquora
- Owner: csu
- License: other
- Created: 2014-07-26T17:36:09.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:50:47.000Z (about 3 years ago)
- Last Synced: 2025-09-25T10:42:33.088Z (8 months ago)
- Topics: parsed-data, python, python-library, quora, statistics
- Language: Python
- Homepage:
- Size: 249 KB
- Stars: 133
- Watchers: 7
- Forks: 67
- Open Issues: 23
-
Metadata Files:
- Readme: README
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
pyquora
=======
Note: Parts of this library are broken due to changes on Quora's end. Issues and pull requests welcome.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|Build Status|
A Python module to fetch and parse data from Quora.
Installation
------------
You will need `Python 2.x `__ and
`pip `__.
Install using pip:
::
pip install quora
Usage
-----
User statistics
~~~~~~~~~~~~~~~
.. code:: python
from quora import User
user = User('Christopher-J-Su')
# Get user activity
activity = user.activity
# Do stuff with the parsed activity data
print activity
# Get user statistics
stats = user.stats
# Take a gander
print stats
Questions
~~~~~~~~~
.. code:: python
from quora import Quora
# Get question statistics
question = Quora.get_question_stats('what-is-python')
# question is:
# {
# 'want_answers': 3,
# 'question_text': u'What is python?',
# 'topics': [u'Science, Engineering, and Technology', u'Technology', u'Electronics', u'Computers'],
# 'question_details': None, 'answer_count': 1,
# 'answer_wiki': '
',
# }
Answer statistics
~~~~~~~~~~~~~~~~~
.. code:: python
from quora import Quora
# The function can be called in any of the following ways.
answer = Quora.get_one_answer('http://qr.ae/6hARL')
answer = Quora.get_one_answer('6hARL')
answer = Quora.get_one_answer(question, author) # question and answer are variables
# answer is:
# {
# 'want_answers': 8,
# 'views': 197,
# 'author': u'Mayur-P-R-Rohith',
# 'question_link': u'https://www.quora.com/Does-Quora-similar-question-search-when-posing-a-new-question-work-better-than-the-search-box-ove',
# 'comment_count': 1,
# 'answer': '...',
# 'upvote_count': 5
# }
# Get the latest answers from a question
latest_answers = Quora.get_latest_answers('what-is-python')
Features
--------
Currently implemented
~~~~~~~~~~~~~~~~~~~~~
- User statistics
- User activity
- Question statistics
- Answer statistics
To do
~~~~~
- Detailed user information (followers, following, etc.; not just
statistics)