[{"data":1,"prerenderedAt":282},["ShallowReactive",2],{"project-6279380":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":39,"post_text":42,"what":43,"said":69,"maker_in_thread":143,"shape":152,"grid":156,"attempts":245,"same_week":246,"maker_shows":32,"maker_hidden":274,"reader_version":275,"card":276},"6279380","Wikipedia","Easy to use Wikipedia API for Python","title","Show HN: Easy to use Wikipedia API for Python","https:\u002F\u002Fgithub.com\u002Fgoldsmith\u002FWikipedia\u002Fblob\u002Fmaster\u002F","github.com","jgoldsmith",1377545815,2013,218,35,60,1739,4,"notable","languages","api client library","library",[24,25,26,27],"wikipedia api","python wikipedia","mediawiki api","wikipedia python library","curious",0.086,{"positive":18,"neutral":31,"mixed":32,"critical":33},9,1,2,16,{"execution":36,"performance":37},{"positive":32,"critical":32},{"positive":38,"critical":32},0,[40,38,38,38,38,38,38,38,32,38,38,38,41,41,40,38,38,41,38,38,40,41,32,38,41,38,38,38,38,41,41,40,41,41,41],5,3,null,{"problem":42,"audience":44,"pricing":42,"motivation":42,"time_to_build":42,"stack":56,"openness":66,"stage":67,"team_size":68},{"value":45,"source":46,"evidence":47},"Python developers who want to query Wikipedia","inferred",[48,52],{"id":49,"by":50,"text":51},"6280070","languagehacker","Nice work on this. It's always good to see people giving more visibility to MediaWiki's capabilities. To engineers who would like to use this library, I would give a caveat that…",{"id":53,"by":54,"text":55},"6280143","echohack","Nice. I can see lots of room for improvement. Great start, especially using Requests will streamline things. I'll work in some changes tonight. Let's start with PEP8, shall we? :)",[57,61],{"value":58,"source":46,"evidence":59},"Python",[60],{"id":53,"by":54,"text":55},{"value":62,"source":63,"evidence":64},"Requests","commenter",[65],{"id":53,"by":54,"text":55},"open_source","unknown","solo",{"praise":70,"objections":79,"requests":94,"questions":116,"alternatives":121},[71],{"value":72,"source":63,"evidence":73},"Good work, useful for MediaWiki access",[74,75],{"id":49,"by":50,"text":51},{"id":76,"by":77,"text":78},"6280095","cjbarber","Fantastic job Johnathon. To HN readers, I just want to point out that this awesome library was created by a high school student (who is extremely motivated and builds a bunch of…",[80,87],{"value":81,"source":63,"evidence":82},"Does not follow MediaWiki API etiquette (user agent, throttling)",[83],{"id":84,"by":85,"text":86},"6279829","nevermore","Please note that this API does not make any specific attempts to obey the mediawiki etiquette (http:\u002F\u002Fwww.mediawiki.org\u002Fwiki\u002FAPI:Etiquette). This sort of API is easy and clean…",{"value":88,"source":63,"evidence":89},"Caching everything may leak memory",[90],{"id":91,"by":92,"text":93},"6281767","harlowja","You might really want to not cache everything coming back into a never ending python dictionary. Lookup memory leak on wikipedia ;)",[95,102,109],{"value":96,"source":63,"evidence":97},"Support for other Wikipedia languages",[98],{"id":99,"by":100,"text":101},"6279895","level09","Excellent ! Are there any apis for other languages ? tried to query using unicode strings and it worked but I only got English content.",{"value":103,"source":63,"evidence":104},"Extract infobox data",[105],{"id":106,"by":107,"text":108},"6282618","ksrm","Is there an API for extracting data from infoboxes?",{"value":110,"source":63,"evidence":111},"Wikitext stripping to plain text",[112],{"id":113,"by":114,"text":115},"6281565","DenisM","Any advice on stripping wiki markup to obtain plain text from the wikipedia dump? A friend is doing linguistic research and could benefit from large bodies of text in different…",[117],{"value":118,"source":63,"evidence":119},"Is there an API for infobox data?",[120],{"id":106,"by":107,"text":108},[122,126,130,137],{"value":123,"source":63,"evidence":124},"pywikipediabot",[125],{"id":84,"by":85,"text":86},{"value":127,"source":63,"evidence":128},"Pattern",[129],{"id":49,"by":50,"text":51},{"value":131,"source":63,"evidence":132},"wiki-api (richardasaurus)",[133],{"id":134,"by":135,"text":136},"6280839","toyg","I've used (and patched) this alternative: https:\u002F\u002Fgithub.com\u002Frichardasaurus\u002Fwiki-api",{"value":138,"source":63,"evidence":139},"mwparserfromhell",[140],{"id":141,"by":11,"text":142},"6281615","Since I am using the MediaWiki extracts API, I never had to find\u002Fwrite my own Wikitext parser. However, I did run into a couple in my research that seemed relatively popular: -…",{"comments":18,"answered":33,"key":144},[145,148,149],{"id":146,"text":147},"6280208","Hi (creator here), Thanks for bringing this to my attention. I've added a disclaimer to the GitHub page regarding Pywikipediabot and plan to make changes to fully comply with…",{"id":141,"text":142},{"id":150,"text":151},"6284521","Each function has its own cache, and the size of the cache is limited by the number of unique requests you make. How would this be a problem? (totally genuine question) Also, if…",{"commenters":153,"max_depth":40,"maker_replies":18,"first_comment_mins":154,"lifespan_hours":155},25,70,23,[157,159,163,166,168,171,173,175,178,180,183,187,189,193,195,197,200,203,205,206,209,211,212,215,217,219,222,225,227,229,232,234,238,241,243],[76,38,40,158,77,38],"maker\u002Fpositive\u002Fnone",[160,38,38,161,162,38],"6280153","other\u002Fneutral\u002Fnone","DjangoReinhardt",[164,38,38,161,165,38],"6280446","voltagex_",[167,38,38,161,162,38],"6280513",[169,38,38,161,170,38],"6280711","hobs",[172,38,38,161,165,38],"6280952",[174,38,38,161,165,38],"6280980",[176,38,38,161,177,38],"6281580","sdoering",[84,32,32,179,85,38],"project\u002Fcritical\u002Fexecution",[181,32,38,161,182,38],"6280118","zalew",[184,32,38,185,186,38],"6281522","commenter\u002Fneutral\u002Fnone","jonbaer",[146,32,38,188,11,32],"maker\u002Fneutral\u002Fexecution",[190,32,41,191,192,38],"6280724","project\u002Fneutral\u002Fnone","tmarthal",[49,33,41,194,50,38],"project\u002Fmixed\u002Fnone",[53,41,40,196,54,38],"project\u002Fpositive\u002Fexecution",[198,41,38,161,199,38],"6280332","sbuccini",[201,41,38,161,202,38],"6281292","frakkingcylons",[113,18,41,204,114,38],"maker\u002Fneutral\u002Fnone",[141,18,38,204,11,32],[207,18,38,161,208,38],"6282172","krichman",[210,18,40,158,114,38],"6285185",[134,40,41,191,135,38],[91,213,32,214,92,38],6,"project\u002Fcritical\u002Fperformance",[150,213,38,216,11,32],"maker\u002Fneutral\u002Fperformance",[99,218,41,191,100,38],7,[220,218,38,161,221,38],"6280096","draegtun",[223,218,38,185,224,38],"6280258","LukeShu",[226,218,38,185,221,38],"6282100",[228,218,38,204,11,32],"6280241",[230,218,41,191,231,38],"6280658","jpatokal",[106,233,41,191,107,38],8,[235,31,40,236,237,38],"6280017","project\u002Fpositive\u002Fnone","leoplct",[239,31,41,191,240,38],"6280110","benastan",[242,31,41,191,224,38],"6280271",[244,31,41,191,231,38],"6280661",[],[247,252,256,260,265,270],{"id":248,"name":249,"points":250,"category":251},"6270451","AdminJS",119,"dev_tools",{"id":253,"name":254,"points":255,"category":251},"6290247","UIBox",118,{"id":257,"name":258,"points":259,"category":20},"6272294","rhoScript",102,{"id":261,"name":262,"points":263,"category":264},"6276449","Popped At",85,"consumer_social",{"id":266,"name":267,"points":268,"category":269},"6272017","Contacts",47,"web_saas",{"id":271,"name":272,"points":273,"category":251},"6284294","EngineHere",40,false,"v2",{"id":277,"name":5,"line":6,"ai":274,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":278,"top":18,"kw":279,"maker":11,"domain":10,"tier":19,"attempts":38,"strip":280,"url":9,"mix":281,"praise":72,"objection":81,"sub":21},6279380,0.09,[24,25,26,27],"50000000100033500300531030000335333",[18,31,32,33],1793990897242]