💥 📖 💥 An unofficial API for Quora.
NOTE : Quora changes its UI almost every day. They make changes, they revert it back. This is what they are doing.
This code worked very well on old structure, but now some of the feature aren't working well. Also, Quora removed few sections
like Highlights
and Views
but this api contains that part which is quite useless at this point of time.
Install
$ npm install --save quora-api
Usage
PART 1
:
STATS
Basic Information :
quora()
› accepts : username
'use strict'; const quora = ; ;
Knows About :
quora.knowsAbout()
› accepts : username
quora;
Highlights :
quora.highlights()
› accepts : username
quora;
PART 2
:
BLOGS & ANSWERS
General answers :
quora.answer()
› accepts : question
[without https://quora.com/]
answer's count : 5 (max)
quora
User's answer :
quora.answer.user()
› accepts : question along with writer's name
quoraanswer
Total answers on a question :
quora.answer.count()
› accepts : question
quoraanswer;
User's total blog :
quora.blogCount()
› accepts : username
quora;
PART 3
:
USER's ACTIVITIES
Track last 5 activities :
quora.activity()
› accepts : username
quora;
››
You can also use :
›
quora.activity.asked(username) :
last 5 questions asked by an user
quoraactivity;
›
quora.activity.answered(username) :
last 5 questions answered by an user
quoraactivity;
Options
››
Datas of section "Basic Information"
can also be scrapped individually
›
quora.profileImage(username)
: get username of a quora user
›
quora.bio(username)
: get initial biography
›
quora.fullBio(username)
: get complete biography
›
quora.publicAnswers(username)
: total publically answered question's count
›
quora.questions(username)
: total publically asked questions's count
›
quora.posts(username)
: total blog posts made
›
quora.followers(username)
: total number of followers
›
quora.following(username)
: total following
›
quora.edits(username)
: total edits made by a user
›
quora.monthlyViews(username)
: views generated on user's answer - monthly
›
quora.totalViews(username)
: views generate on user's answers - all time
username
TYPE :
string
Contributing
Feel free to submit a pull request or an issue! ♥️
License
MIT © Rishi Giri