quorapy
.. image:: https://travis-ci.org/djunehor/quorapy.svg?branch=master :target: https://travis-ci.org/djunehor/quorapy :alt: Build Status
.. image:: http://hits.dwyl.io/djunehor/quorapy.svg :target: http://hits.dwyl.io/djunehor/quorapy :alt: HitCount
Issues and pull requests welcome.
A Python module to fetch and parse data from Quora.
Table of Contents
^^^^^^^^^^^^^^^^^
* `Installation <#installation>`_
* `Usage <#usage>`_
* `Features <#features>`_
* `Contribute <#contribute>`_
Installation
------------
You will need `Python 3.x <https://www.python.org/download/>`_ and `pip <http://pip.readthedocs.org/en/latest/installing.html>`_.
Install using pip: ``pip install quorapy``
Install via repo:
* Clone repor ``git clone https://github.com/djunehor/quorapy``
* Install requirements via ``pip install -r requirements.txt``
* Place quorapy in your project root folder
Usage
-----
.. code-block:: python
from quorapy import Quora
import os
from quorapy.browser import Browser
browser = Browser(os.getenv('LINUX'))
quora = Quora(browser)
# search for `Python`
results = quora.search('Python')
# Sample response:
{ "answer_limit": 1,
"data": [
{
"comments": [
{
"text": "Rather than giving you a boring step by step process of learning Python, I would share my personal journey about how I started learning Python.\nHere is my personal learning experience:\nWhat motivated me to start learn Python ?\nI fell in love with Python after reading a bunch of answers on Quora about how people were doing wonderful things with Python.\nSome were writing scripts to automate their Whats app messages.\nSome wrote a script to download their favourite songs,\nwhile some built a system to receive cricket score updates on their phones.\nAll of this seemed very excited to me and I finally dec...(more)",
"user": {
"datetime": "2019-09-29 02:52:30.692237",
"name": "",
"url": "https://www.quora.com/profile/Neha-Ahuja-178"
}
}
],
"question": {
"datetime": "2019-09-28 23:57:00",
"text": "How should I start learning Python?",
"user": {
"name": "Quora Content Review",
"url": "https://quora.com/profile/Quora-Content-Review"
}
},
"url": "https://www.quora.com/How-should-I-start-learning-Python-1"
}
],
"load_user": null,
"query": "python",
"question_limit": 1
}
Features
--------
Currently implemented
^^^^^^^^^^^^^^^^^^^^^
* Search
Contribute
----------
Check out the issues on GitHub and/or make a pull request to contribute!
Metadata
Release files for quorapy 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quorapy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / quorapy-0.1.1-py3-none-any.whl
| Download URL | quorapy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eebfbc3280cc773146623f3a26eaf1153a970175503782502016fdb979b6b1c9
|
|
BLAKE2b-256 checksum How to use checksums |
9764d6201093dc11bca53903277222157f38da1814e4b116d45f4af3a7ed3cd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
|