{"id":15020896,"url":"https://github.com/diptodas8/quoras","last_synced_at":"2025-10-26T16:30:43.029Z","repository":{"id":57459531,"uuid":"253619870","full_name":"DiptoDas8/quoras","owner":"DiptoDas8","description":"A Python package to collect data from Quora.","archived":false,"fork":false,"pushed_at":"2020-07-02T05:25:48.000Z","size":4683,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T21:11:27.511Z","etag":null,"topics":["quora","scrapper","selenium"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiptoDas8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-06T21:29:47.000Z","updated_at":"2023-01-16T15:14:07.000Z","dependencies_parsed_at":"2022-09-13T16:02:28.143Z","dependency_job_id":null,"html_url":"https://github.com/DiptoDas8/quoras","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoDas8%2Fquoras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoDas8%2Fquoras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoDas8%2Fquoras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoDas8%2Fquoras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiptoDas8","download_url":"https://codeload.github.com/DiptoDas8/quoras/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238366688,"owners_count":19460170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["quora","scrapper","selenium"],"created_at":"2024-09-24T19:55:49.283Z","updated_at":"2025-10-26T16:30:42.712Z","avatar_url":"https://github.com/DiptoDas8.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quoras\n\nA Python package to collect data from Quora.\n\n## Installation\nThe package is available on PyPI. Simply run the following command:\n\n```\npip install quoras\n```\n\n## Setup\nCreate a folder called `chrome_path` in the same directory as your source file. Download the ChromeDriver from [here](https://sites.google.com/a/chromium.org/chromedriver/home) and place the `chromedriver.exe` file in the newly created folder.\n\n## Initialize\nYou need to have account on Quora (or its language-specific forum) to collect data from it. Initialize the Quora class as following providing your credentials and language code. The language codes can be found [here](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\n\n```\nquora = Quora ('email-address', 'password', 'language-code')\n```\n\n## Usage\nThis package allows you to call several functions. Search with keywords for questions, topics or users with function `search(keyword, type='post', scroll_count=1)`. Change `type` to `'topic'` or `'user'` to search topic RSS pages or user profiles respectively. You can pass a value for `scroll_count` to control how many scrolls the web browser will automatically do.\n\n```\nposts = quora.search('ancient history', 'post', scroll_count=1)\ntopics = quora.search('finance', 'topic', scroll_count=1)\nusers = quora.search('Dipto Das', 'user', scroll_count=1)\n```\n\nThere are alternative ways to search posts or users. You can call `search_posts(keyword, scroll_count=1)` function that searches for posts with specified keyword without requiring explicitly indicating type. Similarly, `search_users(keyword, scroll_count=1)` function to search users containing keyword in their profile names. You can also pass a value for `scroll_count` to control how many scrolls the web browser will automatically do.\n\n```\nquestions = quora.search_posts('ancient history', scroll_count=1)\nusers = quora.search_users('Dipto Das', scroll_count=1)\n```\n\nTo search for Q/A threads with a specific user-assigned topic tag, you can simply call `search_topic(topic, scroll_count=1)` function as follows:\n```\ntopic_questions = search_topic('politics', scroll_count=5)\n```\n\nIf you already have an url, you can directly search details about that entry. If it is an url to a Q/A thread, then it will return the question, topics, answers, participating users, and Quora suggested related questions. If it is an url to a user profile, then it will return statistics about the user (e.g., number of public answers, number of questions, number of shares, number of posts, number of followings, and number of followers), and links to top (defined by Quora) posts from the user. To use this function, you have to call `search_url(url)` function.\n\n```\nqathread_details = quora.search_url('https://bn.quora.com/আসামকে-কেন-সবাই-অসম-বলছে')\nuser_details = quora.search_url('https://www.quora.com/profile/Dipto-Das-1')\n```\n\nImportantly, quoras can can retrieve the full text in an answer given its url. For that, you need to call `get_full_answer(url)` function as following:\n\n```\nfull_answer = quora.get_full_answer('https://bn.quora.com/বিজ্ঞানীদের-মধ্যেও-কি/answers/150612153')\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptodas8%2Fquoras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiptodas8%2Fquoras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptodas8%2Fquoras/lists"}