quora-api An unofficial API for Quora.

我要开发同款
匿名用户2021年12月10日
138阅读

技术信息

授权协议
View license

作品详情

QuoraAPINote:partsofthisAPImaybebrokeduetochagesoQuora'sed.Pleaseopeissuesadmakepullrequestsregardigthisatcsu/pyquora.

AuofficialAPIforQuora.

TableofCotetsAPIUsageFeaturesIstallatioCotributigAPIUsageAPIBaseURL:https://quora.christopher.suEdpoitsSummaryGET:/users/<user>GET:/users/<user>/activityGET:/users/<user>/activity/aswersGET:/users/<user>/activity/user_followsGET:/users/<user>/activity/wat_aswersGET:/users/<user>/activity/upvotesGET:/users/<user>/activity/review_requestsGET:/questios/<questio>GET:/users/<user>Example

Exampleusage:GEThttps://quora.christopher.su/users/Christopher-J-Su

Exampleresult:

{"aswers":301,"blogs":ull,"edits":5576,"followers":173,"followig":167,"ame":"Christopher-J-Su","posts":6,"questios":110,"topics":ull,"userame":"Christopher-J-Su"}

Note:duetorecetQuoraUIchages,theblogsadtopicsstatisticsarecurretlyotworkigadwillalwaysreturull.

GET:/users/<user>/activity

Gettheuser'sactivity.

Example

Exampleusage:GEThttps://quora.christopher.su/users/Christopher-J-Su/activity

Output(excerpt):

{"activity":[{"lik":"https://www.quora.com/Uiversity-of-Washigto/What-does-the-UW-CS-departmet-gai-from-barrig-other-UW-studets-from-takig-its-courses/aswer/Christopher-J-Su","published":"Tue,25Feb201400:10:55GMT","summary":"<--...--->","title":"WhatdoestheUWCSdepartmetgaifrombarrigotherUWstudetsfromtakigitscourses?"},{"lik":"https://www.quora.com/Ca-applied-math-studets-take-CSE-majors-oly-courses/aswer/Christopher-J-Su","published":"Tue,25Feb201400:04:33GMT","summary":"<divstyle=\"color:#666666;\">ChristopherJ.Suaddedthisaswer.</div><br/><divid=\"ld_ihbjvp_3370\"><divstyle=\"fot-weight:bold;color:#000000;\"><divclass=\"hover_meuhiddehover_meu_widehover_meu_cards\"id=\"__w2_qIjTQfx_meu\"style=\"display:oe;\"><divclass=\"hover_meu_ub\"></div><divclass=\"hover_meu_cotets\"id=\"__w2_qIjTQfx_meu_cotets\"></div></div><aclass=\"user\"href=\"https://www.quora.com/Christopher-J-Su\"id=\"__w2_qIjTQfx_lik\">ChristopherJ.Su</a></div><br/>IthikyoumighteedtofilloutaCSEcoursepetitiototakea300+-levelCSEcourseasao-major:<spaclass=\"qlik_cotaier\"><aclass=\"exteral_lik\"href=\"https://www.cs.washigto.edu/prospective_studets/udergrad/petitio/\"target=\"_blak\">PetitioforNo-Majors</a></spa>.<br/><br/><ahref=\"https://www.quora.com/Ca-applied-math-studets-take-CSE-majors-oly-courses\"style=\"fot-weight:bold;\">SeequestiooQuora</a></div>","title":"CaappliedmathstudetstakeCSEmajorsolycourses?"}],"last_updated":"Thu,24Jul201405:32:49GMT","userame":"Christopher-J-Su"}GET:/users/<user>/activity/aswers

Gettheuser'slatestaswers.

Example

Exampleusage:GEThttps://quora.christopher.su/users/Christopher-J-Su/activity/aswers

Output(excerpt):

{"items":[{"id":"5:48afe1749959ac2b673b1094a13b6cb5#1418975956225507","lik":"https://www.quora.com/I-eed-a-summer-itership-but-I-dot-wat-to-apply-because-theres-a-90-chace-Ill-get-rejected-What-should-I-do/aswer/Christopher-J-Su","published":"Fri,19Dec201407:59:16GMT","summary":"<divid=\"ld_ftujiv_1299\"><divstyle=\"fot-weight:bold;color:#000000;\"><divclass=\"hover_meuhiddehover_meu_cardshover_meu_widehover_meu_cards\"id=\"__w2_lHemksQ_meu\"style=\"display:oe;\"><divclass=\"hover_meu_ub\"></div><divclass=\"hover_meu_cotets\"id=\"__w2_lHemksQ_meu_cotets\"></div></div><aclass=\"user\"href=\"https://www.quora.com/Christopher-J-Su\"id=\"__w2_lHemksQ_lik\">ChristopherJ.Su</a></div><br/>Apply,iterview,fail,repeat.Keepfailig.Evetually,you&#039;lloticeyoustopfailigasmuchasyoudidbefore.The,you&#039;llsuddelystartpassigiterviews.The,you&#039;llstartgettigoffers.<br/><br/>Do&#039;tgetlockedupithemidsetthatyouwo&#039;tmakeit.Ifyoueverevetry,you&#039;llevergetaitership.Havigiterviewsscheduledwillmotivateyoutostudyadprepareforthem.Doigtheiterviewsthemselvesisgreatpractice.<br/><br/><ahref=\"https://www.quora.com/I-eed-a-summer-itership-but-I-dot-wat-to-apply-because-theres-a-90-chace-Ill-get-rejected-What-should-I-do\"style=\"fot-weight:bold;\">SeequestiooQuora</a></div>","title":"Ieedasummeritership,butIdo'twattoapplybecausethere'sa90%chaceI'llgetrejected.WhatshouldIdo?"}]}GET:/users/<user>/activity/user_follows

Gettheuser'slatestuserfollows.

Example

Exampleusage:GEThttps://quora.christopher.su/users/Christopher-J-Su/activity/user_follows

Output(excerpt):

{"items":[{"id":"4:c219dbf80746802cf733f0cb3d5218c2#1419000196656496","lik":"https://www.quora.com/Ia-Vishik","published":"Fri,19Dec201414:43:16GMT","summary":"","title":"IaVishik"},{"id":"4:bd7227ae22f8f8cd9acfcb906ae8f6ea#1418975190093378","lik":"https://www.quora.com/Mira-Zaslove","published":"Fri,19Dec201407:46:30GMT","summary":"","title":"MiraZaslove"}]}GET:/users/<user>/activity/wat_aswers

Gettheuser'slatestfollowedquestios.

Example

Exampleusage:GEThttps://quora.christopher.su/users/Christopher-J-Su/activity/wat_aswers

Output(excerpt):

{"items":[{"id":"1:03fb57d2ccb343bff9bb608c6978f5c7#1418895552348316","lik":"https://www.quora.com/What-is-a-typical-day-like-for-a-software-egieer-at-Google","published":"Thu,18Dec201409:39:12GMT","summary":"<divid=\"ld_veqgk_1856\"><spaid=\"ld_veqgk_1857\">5Aswers</spa><br/><br/><ahref=\"https://www.quora.com/What-is-a-typical-day-like-for-a-software-egieer-at-Google\"style=\"fot-weight:bold;\">SeequestiooQuora</a></div><br/>","title":"WhatisatypicaldaylikeforasoftwareegieeratGoogle?"}]}GET:/users/<user>/activity/upvotes

Gettheuser'slatestupvotedaswers.

Example

Exampleusage:GEThttps://quora.christopher.su/users/Christopher-J-Su/activity/upvotes

Output(excerpt):

{"items":[{"id":"5:cf756de40913266d1c7bb0ff1306a384#1419235600718606","lik":"https://www.quora.com/What-criteria-are-Google-iters-graded-o-for-performace-reviews/aswer/Kshitij-Gopal","published":"Mo,22Dec201408:06:40GMT","summary":"<divid=\"ld_gurtiz_2329\"><divstyle=\"fot-weight:bold;color:#000000;\"><divclass=\"hover_meuhiddehover_meu_cardshover_meu_widehover_meu_cards\"id=\"__w2_EisD67h_meu\"style=\"display:oe;\"><divclass=\"hover_meu_ub\"></div><divclass=\"hover_meu_cotets\"id=\"__w2_EisD67h_meu_cotets\"></div></div><aclass=\"user\"href=\"https://www.quora.com/Kshitij-Gopal\"id=\"__w2_EisD67h_lik\">KshitijGopal</a></div><br/>I&#039;motsureowhatbasistheearlieraswerwasgive,butassomeoewhomaageditersdirectlyatGoogleI&#039;llgivethisoeacrack.<br/><br/>Itersareevaluatedoaumberofparameters,mostofwhicharecofidetialbutrestassuredtherearearageofperformacecriteria,parametersthatmeasureiitiative,ethusiasm,workethicadfiallyGoogley-ess.Goigaboveadbeyodisexpectedadwillhelpyouiyourfialevaluatio,ifyou&#039;reaaspirigitertherememberthat.<br/><br/>Justtoclarifytheotheraswercompletely-thereisothigradomaboutitadcertailyo&quot;lottery&quot;system.I&#039;veseeadfilledtheevaluatioform,atGoogleotmuchislefttoluck.<br/><br/><ahref=\"https://www.quora.com/What-criteria-are-Google-iters-graded-o-for-performace-reviews\"style=\"fot-weight:bold;\">SeequestiooQuora</a></div>","title":"WhatcriteriaareGoogleitersgradedoforperformacereviews?"}]}GET:/users/<user>/activity/review_requests

Gettheuser'slatestreviewrequests.

Example

Exampleusage:GEThttps://quora.christopher.su/users/Aaro-Ou/activity/review_requests

Output(excerpt):

{"items":[{"id":"1:24ee4ef5eff0c53d8247f5a45e83f5e3#1418745295543236","lik":"https://www.quora.com/Reviews-of-Elixir-programmig-laguage","published":"Tue,16Dec201415:54:55GMT","summary":"<divid=\"ld_qxesgk_3346\"><spaid=\"ld_qxesgk_3347\">0Aswers</spa><br/><br/><ahref=\"https://www.quora.com/Reviews-of-Elixir-programmig-laguage\"style=\"fot-weight:bold;\">WriteaasweroQuora</a></div><br/>","title":"Reviewsof:Elixir(programmiglaguage)"}]}GET:/questios/<questio>

Getstatisticsoaquestio.

Example

Exampleusage:GEThttps://quora.christopher.su/questios/If-space-is-3-dimesioal-ca-time-also-be-3-dimesioal

Output:

{"aswer_cout":6,"topics":["Sciece,Egieerig,adTechology","Sciece","PhysicalScieces","Physics","Time(physics)"],"wat_aswers":7}GET:/aswers/<aswer_short_lik>

Getaaswerbyitsshortlik.

Example

Exampleusage:GEThttps://quora.christopher.su/aswers/6hARL

Output:

{"aswer":"<div...</div>","author":"Mayur-P-R-Rohith","commet_cout":1,"questio_lik":"https://www.quora.com/Does-Quora-similar-questio-...","upvote_cout":6,"views":227,"wat_aswers":8}GET:/aswers/<questio>/<author>

Getaaswerbyitsquestioaditsauthor.

FeaturesCurretlyimplemetedUserstatisticsUseractivityQuestiostatisticsAswerstatisticsTodoDetaileduseriformatio(followers,followig,etc.;otjuststatistics)UittestsCachedatawithmemcachedIstallatio

YouwilleedPytho2.pipisrecommededforistalligdepedecies.

TorutheAPIlocally:

$pipistall-rrequiremets.txt$pythoserver.pyCotributig

Feelfreetosubmitapullrequestoraissue!QuoraAPIusesthepyquorapackage.

功能介绍

Quora API Note: parts of this API may be broken due to changes on Quora's end. Please open issues...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论