Skip to main content
pyquora
=======

Note: parts of this library may be 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.

Table of Contents
-----------------

- `Installation <#installation>`__
- `Usage <#usage>`__
- `Features <#features>`__
- `Contribute <#contribute>`__
- `Projects using ``pyquora`` <#projects-using-pyquora>`__

Installation
------------

You will need `Python 2 <https://www.python.org/download/>`__.
`pip <http://pip.readthedocs.org/en/latest/installing.html>`__ is
recommended for installing dependencies.

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': '<div class="hidden" id="answer_wiki"><div id="ld_mqcfmt_15628"><div id="__w2_po3p1uM_wiki"></div></div></div>',
# }

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)

Metadata

Release files for quora 0.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quora 0.1.23
File Size Uploaded
quora-0.1.23.tar.gz 18.1 kB Details

Release files / quora-0.1.23.tar.gz

Download URL quora-0.1.23.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd51de8edd7fdc8c8a47ced2f864ffa9d9d5a92359331f7fa861de1829386a1c
BLAKE2b-256 checksum
How to use checksums
31404b0a79357c0b0e6b382847efacc16eb110e960b15220641e2d05160c49fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.23 This release

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

0.1.14

1 release file

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page