Skip to main content

A Python module to fetch and parse data from Quora.

Installation

You will need Python 2. pip is recommended for installing dependencies.

Install using pip:

pip install quora

Usage

User statistics

from quora import Quora

quora = Quora()

# Get user activity
activity = quora.get_activity('Christopher-J-Su')

# Do stuff with the parsed activity data
activity.upvotes
activity.user_follows
activity.want_answers
activity.answers
activity.review_requests

# Get user statistics
stats = quora.get_user_stats('Christopher-J-Su')

# Take a gander
print stats

Questions

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>',
# }

Answers

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

Todo

  • Detailed user information (followers, following, etc.; not just statistics)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quora-0.1.20.6.tar.gz (17.9 kB view details)

Uploaded Source

File details

Details for the file quora-0.1.20.6.tar.gz.

File metadata

  • Download URL: quora-0.1.20.6.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for quora-0.1.20.6.tar.gz
Algorithm Hash digest
SHA256 b88e885a1d143d5a8662a0d91272a41a9e9bed1b0f1bec68b643ad0b6a704afb
MD5 8150462e99328d8dba9385e2f64a991c
BLAKE2b-256 77dde106bde7a0f3c8dfe1c82458124a6a8d46b8c32e2ceadd2326961da84e9f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.23

1 file

0.1.22

1 file

0.1.21

1 file

0.1.20.7

1 file

This release

0.1.20.6 This release

1 file

0.1.20.5

1 file

0.1.20.4

1 file

0.1.20.3

1 file

0.1.20.2

1 file

0.1.20.1

1 file

0.1.20

1 file

0.1.19

1 file

0.1.18.3

1 file

0.1.18.2

1 file

0.1.18.1

1 file

0.1.18

1 file

0.1.17

1 file

0.1.16.6

1 file

0.1.16.5

1 file

0.1.16.4

1 file

0.1.16.3

1 file

0.1.16.2

1 file

0.1.16.1

1 file

0.1.16

1 file

0.1.15

1 file

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

0.1

1 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