forked from csu/pyquora
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c66ce26
Showing
60 changed files
with
493 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.1.0, 11th September 2014 -- Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) [year] [fullname] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
===== | ||
qtopic | ||
===== | ||
|
||
A Python module to fetch and parse data Topic related data from Quora. | ||
|
||
Installation | ||
============ | ||
|
||
Install using pip: | ||
|
||
pip install qtopic | ||
|
||
Usage | ||
===== | ||
|
||
from qtopic import QTopic | ||
|
||
best_questions = QTopic.get_best_questions ('Computer-Programming') | ||
|
||
#do stuff with the parsed data | ||
best_questions['links'] | ||
best_questions['title'] | ||
best_questions['published'] | ||
|
||
|
||
Features | ||
======== | ||
|
||
Currently implemented | ||
--------------------- | ||
|
||
* Follower Count | ||
* Some followers name | ||
* Related Topics | ||
* Feed last updated | ||
* Best questions | ||
* Top Stories | ||
breaked down links, title, published. | ||
* Open question | ||
breaked down links, title, published. | ||
|
||
Todo | ||
---- | ||
|
||
* Information to be stored in a better way. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# qtopic | ||
|
||
A Python module to fetch and parse Topics related data from Quora. | ||
|
||
### Projects built using QTopic | ||
* [`qtopic-api`](https://github.com/tapasweni-pathak/qtopic-api) – A REST API to get topic realted data from Quora. | ||
|
||
|
||
## 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 qtopic | ||
|
||
## Usage | ||
|
||
```python | ||
|
||
from qtopic import QTopic | ||
|
||
best_questions = QTopic.get_best_questions ('Computer-Programming') | ||
|
||
#do stuff with the parsed data | ||
best_questions['links'] | ||
best_questions['title'] | ||
best_questions['published'] | ||
|
||
``` | ||
|
||
## Features | ||
### Currently implemented | ||
|
||
* Follower Count | ||
* Some followers name | ||
* Related Topics | ||
* Feed last updated | ||
* Best questions | ||
* Top Stories | ||
breaked down links, title, published. | ||
* Open question | ||
breaked down links, title, published. | ||
|
||
|
||
### Todo | ||
* Information to be stored in a better way. | ||
|
||
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/tapasweni-pathak/pyqtopic/trend.png)](https://bitdeli.com/free "Bitdeli Badge") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> <html lang="en" dir="auto"> <head><meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=no"> <meta name="description" content="qtopic A Python module to fetch and parse Topics related data from Quora. Projects built using QTopic qtopic-api – A REST API to get topic realted ..."> <meta name="revised" content="73c6deebe88c81b8c1550d2f6fdc66c56ed050ef"> <meta name="author" content="Quora Users"> <meta name="generator" content="jekyll-rtd-theme v2.0.10"><meta name="theme-color" content="#2980b9"> <title>pyQTopic · Just another documentation theme compatible with GitHub Pages</title> <meta name="twitter:title" content="pyQTopic · Just another documentation theme compatible with GitHub Pages"> <meta name="twitter:description" content="qtopic A Python module to fetch and parse Topics related data from Quora. Projects built using QTopic qtopic-api – A REST API to get topic realted ..."> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@Quora Users"> <meta name="twitter:url" content="/"> <meta name="twitter:creator" content="@jekyll-rtd-theme v2.0.10"> <meta property="og:title" content="pyQTopic · Just another documentation theme compatible with GitHub Pages"> <meta property="og:description" content="qtopic A Python module to fetch and parse Topics related data from Quora. Projects built using QTopic qtopic-api – A REST API to get topic realted ..."> <meta property="og:locale" content="en"> <meta property="og:url" content="/"> <meta property="og:type" content="article"> <meta property="article:author" content="Quora Users"> <meta property="article:published_time" content="2015-10-16T08:13:50-05:00"> <meta property="article:modified_time" content="2023-07-06T01:41:40-05:00"> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "/" }, "headline": "pyQTopic · Just another documentation theme compatible with GitHub Pages", "image": [], "author": { "@type": "Person", "name": "Quora Users" }, "datePublished": "2015-10-16T08:13:50-05:00", "dateModified": "2023-07-06T01:41:40-05:00", "publisher": { "@type": "Organization", "name": "Quora Users", "logo": { "@type": "ImageObject", "url": "https://avatars.githubusercontent.com/u/6815105?v=4" } }, "description": "qtopic A Python module to fetch and parse Topics related data from Quora. Projects built using QTopic qtopic-api – A REST API to get topic realted ..." } </script> <link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="canonical" href="/"><link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg"><link rel="icon" type="image/png" href="/assets/images/favicon-16x16.png" sizes="16x16"> <link rel="icon" type="image/png" href="/assets/images/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="/assets/images/favicon-96x96.png" sizes="96x96"><link rel="mask-icon" href="/assets/images/favicon.svg" color="#2980b9"><link rel="apple-touch-icon" href="/assets/images/apple-touch-icon-300x300.jpg"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rundocs/[email protected]/assets/css/theme.min.css"><script> window.ui = { title: "pyQTopic", baseurl: "", i18n: { search_results: "Search Results", search_results_found: "Search finished, found # page(s) matching the search query.", search_results_not_found: "Your search did not match any documents, please make sure that all characters are spelled correctly!" } }; </script> </head> <body class="container"><div class="sidebar-wrap overflow-hidden"> <div class="sidebar height-full overflow-y-scroll overflow-x-hidden"> <div class="header d-flex flex-column p-3 text-center"> <div class="title pb-1"> <a class="h4 no-underline py-1 px-2 rounded-1" href="/" title="Just another documentation theme compatible with GitHub Pages"> <i class="fa fa-home"></i> pyQTopic </a> </div> <span class="version"></span> <form class="search pt-2" action="/search.html" method="get" autocomplete="off"> <input class="form-control input-block input-sm" type="text" name="q" placeholder="Search docs..."> </form> </div> <div class="toctree py-2" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> </ul> <a class="caption d-block text-uppercase no-wrap px-2 py-0" href="/test/"> Test Documentation </a><ul> <li class="toc level-1 " data-sort="1" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/markdown.html">1. Markdown Elements</a> </li> <li class="toc level-1 " data-sort="2" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/toasts.html">2. Toasts Card</a> </li> <li class="toc level-1 " data-sort="3" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/codes.html">3. Code Blocks</a> </li> <li class="toc level-1 " data-sort="4" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/mermaid.html">4. Mermaid Test</a> </li> <li class="toc level-1 " data-sort="5" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/emoji.html">5. Emoji Test</a> </li> <li class="toc level-1 " data-sort="6" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/gist.html">6. Gist Test</a> </li> <li class="toc level-1 " data-sort="7" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/avatar.html">7. Avatar Test</a> </li> <li class="toc level-1 " data-sort="8" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/mentions.html">8. Mentions Test</a> </li> <li class="toc level-1 " data-sort="9" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/fonts.html">9. Fonts Test</a> </li> <li class="toc level-1 " data-sort="10" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/mathjax.html">10. Mathjax Test</a> </li> <li class="toc level-1 " data-sort="11" data-level="1"> <a class="d-flex flex-items-baseline " href="/test/utilities.html">11. Primer Utilities Test</a> </li></ul> <a class="caption d-block text-uppercase no-wrap px-2 py-0" href="/test_long/"> This is an incredibly long caption for a long menu </a><ul> <li class="toc level-1"> <a class="d-flex flex-items-baseline" href="/test_long/folder1/"> I’m folder1 </a><ul> <li class="toc level-2 " data-sort="" data-level="2"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/file1.html">file1</a> </li> <li class="toc level-2 " data-sort="" data-level="2"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/file2.html">file2</a> </li> <li class="toc level-2 " data-sort="" data-level="2"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/file3.html">file3</a> </li> <li class="toc level-2"> <a class="d-flex flex-items-baseline" href="/test_long/folder1/folder2/"> I’m folder2 </a><ul> <li class="toc level-3 " data-sort="" data-level="3"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/folder2/file1.html">file1</a> </li> <li class="toc level-3 " data-sort="" data-level="3"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/folder2/file2.html">file2</a> </li> <li class="toc level-3 " data-sort="" data-level="3"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/folder2/file3.html">file3</a> </li> <li class="toc level-3"> <a class="d-flex flex-items-baseline" href="/test_long/folder1/folder2/folder1/"> I’m folder1 </a><ul> <li class="toc level-4 " data-sort="" data-level="4"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/folder2/folder1/file2.html">file2</a> </li> <li class="toc level-4 " data-sort="" data-level="4"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/folder2/folder1/file1.html">file1</a> </li> <li class="toc level-4 " data-sort="" data-level="4"> <a class="d-flex flex-items-baseline " href="/test_long/folder1/folder2/folder1/file3.html">file3</a> </li></ul> </li></ul> </li></ul> </li> <li class="toc level-1"> <a class="d-flex flex-items-baseline" href="/test_long/folder2/"> I’m folder2 </a><ul> <li class="toc level-2 " data-sort="" data-level="2"> <a class="d-flex flex-items-baseline " href="/test_long/folder2/file2.html">file2</a> </li> <li class="toc level-2 " data-sort="" data-level="2"> <a class="d-flex flex-items-baseline " href="/test_long/folder2/file3.html">file3</a> </li> <li class="toc level-2 " data-sort="" data-level="2"> <a class="d-flex flex-items-baseline " href="/test_long/folder2/file1.html">file1</a> </li> <li class="toc level-2"> <a class="d-flex flex-items-baseline" href="/test_long/folder2/folder1/"> I’m folder1 </a><ul> <li class="toc level-3 " data-sort="" data-level="3"> <a class="d-flex flex-items-baseline " href="/test_long/folder2/folder1/file3.html">file3</a> </li> <li class="toc level-3 " data-sort="" data-level="3"> <a class="d-flex flex-items-baseline " href="/test_long/folder2/folder1/file1.html">file1</a> </li> <li class="toc level-3 " data-sort="" data-level="3"> <a class="d-flex flex-items-baseline " href="/test_long/folder2/folder1/file2.html">file2</a> </li></ul> </li></ul> </li></ul> </div> </div> </div> <div class="content-wrap"> <div class="header d-flex flex-justify-between p-2 hide-lg hide-xl" aria-label="top navigation"> <button id="toggle" aria-label="Toggle menu" class="btn-octicon p-2 m-0 text-white" type="button"> <i class="fa fa-bars"></i> </button> <div class="title flex-1 d-flex flex-justify-center"> <a class="h4 no-underline py-1 px-2 rounded-1" href="/">pyQTopic</a> </div> </div> <div class="content p-3 p-sm-5"> <div class="navigation-top d-flex flex-justify-between"> <ul class="breadcrumb" role="navigation" aria-label="breadcrumbs navigation"> <li class="breadcrumb-item"> <a class="no-underline" href="/" title="/"> <i class="fa fa-home"></i> </a> </li><li class="breadcrumb-item" aria-current="page">README.md</li></ul> <a class="edit" href="https://github.com/Quora-Users/pyQTopic/edit/gh-pages/README.md" title="Edit on GitHub" rel="noreferrer" target="_blank"> <i class="fa fa-edit"></i> </a> </div> <hr> <div role="main" itemscope="itemscope" itemtype="https://schema.org/Article"> <div class="markdown-body" itemprop="articleBody"> <h1 id="qtopic">qtopic</h1> <p>A Python module to fetch and parse Topics related data from Quora.</p> <h3 id="projects-built-using-qtopic">Projects built using QTopic</h3> <ul> <li><a href="https://github.com/tapasweni-pathak/qtopic-api"><code class="language-plaintext highlighter-rouge notranslate">qtopic-api</code></a> – A REST API to get topic realted data from Quora.</li> </ul> <h2 id="installation">Installation</h2> <ul> <li> <p>You will need <a href="https://www.python.org/download/">Python 2</a>.</p> </li> <li> <p><a href="http://pip.readthedocs.org/en/latest/installing.html">pip</a> is recommended for installing dependencies.</p> </li> </ul> <p>Install using pip:</p> <div class="language-plaintext highlighter-rouge notranslate"><div class="highlight"><pre class="highlight"><code>pip install qtopic | ||
</code></pre> </div></div> <h2 id="usage">Usage</h2> <div class="language-python highlighter-rouge notranslate"><div class="highlight"><pre class="highlight"><code> | ||
<span class="kn">from</span> <span class="nn">qtopic</span> <span class="kn">import</span> <span class="n">QTopic</span> | ||
|
||
<span class="n">best_questions</span> <span class="o">=</span> <span class="n">QTopic</span><span class="p">.</span><span class="n">get_best_questions</span> <span class="p">(</span><span class="s">'Computer-Programming'</span><span class="p">)</span> | ||
|
||
<span class="c1">#do stuff with the parsed data | ||
</span><span class="n">best_questions</span><span class="p">[</span><span class="s">'links'</span><span class="p">]</span> | ||
<span class="n">best_questions</span><span class="p">[</span><span class="s">'title'</span><span class="p">]</span> | ||
<span class="n">best_questions</span><span class="p">[</span><span class="s">'published'</span><span class="p">]</span> | ||
|
||
</code></pre> </div></div> <h2 id="features">Features</h2> <h3 id="currently-implemented">Currently implemented</h3> <ul> <li>Follower Count</li> <li>Some followers name</li> <li>Related Topics</li> <li>Feed last updated</li> <li>Best questions</li> <li>Top Stories breaked down links, title, published.</li> <li>Open question breaked down links, title, published.</li> </ul> <h3 id="todo">Todo</h3> <ul> <li>Information to be stored in a better way.</li> </ul> <p><a href="https://bitdeli.com/free" title="Bitdeli Badge"><img src="https://d2weczhvl823v0.cloudfront.net/tapasweni-pathak/pyqtopic/trend.png" alt="Bitdeli Badge" /></a></p> </div> </div> <hr> <div class="copyright text-center text-gray" role="contentinfo"> <i class="fa fa-copyright"></i> <span class="time">2015-2023,</span> <a class="text-gray" href="https://github.com/Quora-Users" rel="noreferrer" target="_blank">Quora Users</a> Revision <a class="text-gray" href="https://github.com/Quora-Users/pyQTopic/commit/73c6deebe88c81b8c1550d2f6fdc66c56ed050ef" title="73c6deebe88c81b8c1550d2f6fdc66c56ed050ef" rel="noreferrer" target="_blank">73c6dee</a> <br> <div class="generator"> Built with <a href="https://pages.github.com" rel="noreferrer" target="_blank" title="github-pages v209">GitHub Pages</a> using a <a href="https://github.com/rundocs/jekyll-rtd-theme" rel="noreferrer" target="_blank" title="jekyll-rtd-theme v2.0.10">theme</a> provided by <a href="https://rundocs.io" rel="noreferrer" target="_blank">RunDocs</a>. </div> </div> </div> </div> <div class="addons-wrap d-flex flex-column overflow-y-auto"> <div class="status d-flex flex-justify-between p-2"> <div class="title p-1"> <i class="fa fa-book"></i> pyQTopic </div> <div class="branch p-1"> <span class="name"> gh-pages </span> <i class="fa fa-caret-down"></i> </div> </div> <div class="addons d-flex flex-column height-full p-2 d-none"> <dl> <dt>GitHub</dt> <dd> <a href="https://github.com/Quora-Users/pyQTopic" title="Stars: 7"> <i class="fa fa-github"></i> Homepage </a> </dd> <dd> <a href="" title="Open issues: 0"> <i class="fa fa-question-circle-o"></i> Issues </a> </dd> <dd> <a href="https://github.com/Quora-Users/pyQTopic/zipball/gh-pages" title="Size: 278 Kb"> <i class="fa fa-download"></i> Download </a> </dd> </dl> <hr> <div class="license f6 pb-2"> This <a href="/" title="pyQTopic">Software</a> is under the terms of <a href="https://github.com/Quora-Users/pyQTopic">MIT License</a>. </div> </div> </div> <script src="https://cdn.jsdelivr.net/gh/rundocs/[email protected]/assets/js/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/gh/rundocs/[email protected]/assets/js/theme.min.js"></script> </body> </html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name='qtopic', | ||
version='0.1.0', | ||
description='Fetches and parses topic related data from Quora.', | ||
author='Tapasweni Pathak', | ||
author_email='[email protected]', | ||
url='https://github.com/tapasweni-pathak/pyQTopic', | ||
packages=['qtopic'], | ||
install_requires=[ | ||
"beautifulsoup4 == 4.3.2", | ||
"feedparser == 5.1.3" | ||
] | ||
) |
Oops, something went wrong.