[{"data":1,"prerenderedAt":127},["ShallowReactive",2],{"project-20485870":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":9,"maker":10,"posted_at":11,"year":12,"points":13,"comments":14,"rank_in_year":15,"shown_in_year":16,"top":17,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":27,"sentiment":9,"stance_mix":28,"scored_comments":29,"aspects":30,"strip":31,"post_text":32,"what":33,"said":59,"maker_in_thread":81,"shape":83,"grid":86,"attempts":89,"same_week":90,"maker_shows":118,"maker_hidden":119,"reader_version":120,"card":121},"20485870","python-hacker-news","A thin Python library to access HN data using Algolia's API","title","Show HN: A thin Python library to access HN data using Algolia's API",null,"santiagobasulto",1563632096,2019,15,1,1407,2195,65,"shown","languages","python library","library",[23,24,25,26],"hacker news api","algolia search api","python wrapper","hacker news data","quiet",{"positive":29,"neutral":29,"mixed":29,"critical":29},0,{},[29],"Hello community. Some time ago I was trying to create a project for my students using Hacker News data. As you might know, HN offers an official API [0], but it's based on Firebase and I felt it's main usage is to build clients, rather than consult data.\n\nI found out that Algolia also provides an official REST API [1]. It's exactly what I needed: the ability to \"search\" HN. Either by keywords, type of stories (Show HN, Ask HN, etc) and\u002For date.\n\nSo I created a thin python wrapper on top of Algolia's Search API: https:\u002F\u002Fgithub.com\u002Fsantiagobasulto\u002Fpython-hacker-news\n\nThe library is in early stag",{"problem":34,"audience":40,"pricing":9,"motivation":44,"time_to_build":9,"stack":48,"openness":57,"stage":58,"team_size":57},{"value":35,"source":36,"evidence":37},"Firebase HN API is meant for building clients, not querying data; hard to search HN by keyword, type, or date","maker",[38],{"id":39},"post",{"value":41,"source":36,"evidence":42},"Students and developers who want to query Hacker News data",[43],{"id":39},{"value":45,"source":36,"evidence":46},"Needed HN data for a project for students",[47],{"id":39},[49,53],{"value":50,"source":36,"evidence":51},"Python",[52],{"id":39},{"value":54,"source":36,"evidence":55},"Algolia Search API",[56],{"id":39},"unknown","beta",{"praise":60,"objections":69,"requests":74,"questions":75,"alternatives":76},[61],{"value":62,"source":63,"evidence":64},"Useful for quick existence checks and watching new HN items","commenter",[65],{"id":66,"by":67,"text":68},"20491943","minxomat","Awesome. I imagine this being useful for things that quickly check if something exists on HN or watch for new items etc. Though I think this needs clarification: > but it's based…",[70],{"value":71,"source":63,"evidence":72},"Post's claim that the HN API is Firebase-only needs clarification, since BigQuery also has the dataset",[73],{"id":66,"by":67,"text":68},[],[],[77],{"value":78,"source":63,"evidence":79},"HN BigQuery public dataset for complex queries",[80],{"id":66,"by":67,"text":68},{"comments":29,"answered":29,"key":82},[],{"commenters":14,"max_depth":14,"maker_replies":29,"first_comment_mins":84,"lifespan_hours":85},1549,26,[87],[66,29,29,88,67,29],"commenter\u002Fneutral\u002Fdocs",[],[91,96,100,104,109,113],{"id":92,"name":93,"points":94,"category":95},"20478339","Trennd",446,"data",{"id":97,"name":98,"points":99,"category":95},"20498474","Ananas",359,{"id":101,"name":102,"points":103,"category":95},"20507592","Poli",236,{"id":105,"name":106,"points":107,"category":108},"20514683","printable-mockups",155,"dev_tools",{"id":110,"name":111,"points":112,"category":108},"20515880","blogger-cli",150,{"id":114,"name":115,"points":116,"category":117},"20517129","Minimal Twitter",93,"productivity",4,false,"v2",{"id":122,"name":5,"line":6,"ai":119,"cat":19,"year":12,"points":13,"comments":14,"rec":27,"s":9,"top":17,"kw":123,"maker":10,"domain":124,"tier":18,"attempts":29,"strip":125,"url":-1,"mix":126,"praise":62,"objection":71,"sub":20},20485870,[23,24,25,26],"","0",[29,29,29,29],1793990991847]