GithubHelp home page GithubHelp logo

bennyguitar / libhn Goto Github PK

View Code? Open in Web Editor NEW
150.0 150.0 26.0 180 KB

The definitive Objective-C library for adding HackerNews to your iOS/Mac app.

License: MIT License

Objective-C 98.80% Ruby 1.20%

libhn's People

Contributors

auto234875 avatar bennyguitar avatar hamin avatar jchomali avatar weiran avatar wokalski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libhn's Issues

It's broken now

Yeah, since this morning, the scrapping of the news page (potentially) does not work anymore. I did not yet had the time to look at it.

Swift rewrite ?

I'm doing my own HN Client, mostly to test out Swift and latest iOS 8 features, it can be found here

https://github.com/Dimillian/SwiftHN

I thinking about writing my own library for scrapping HN, all in Swift, and I need a few features than LibHN doesn't offer, like a caching mechanism for example.

I don't know what you think about that, or if you plan to rewrite it someday, I think I'll begin mine this during August.

Passwords cannot contain certain special characters

Using an iOS application that uses your library. I'm going to take a look and possibly submit a pull request.. but wanted this submitted as an issue first.

When attempting to login with a password containing an ampersand (&), authentication fails. I'm assuming escaping/encoding isn't occurring.. but could be wrong.

replyToPostOrComment always return BOOL success=NO

I was wondering if you guys are having the same issue.

Whenever I tried to use this method, it always return BOOL success=NO, even though it posted successfully.

I ended up making multiple repeated post to HN when testing my app and got slowbanned, lol.

Logged User Cookie

User is automatically logged out every time. I suppose it may be the cookie

Commenting dosen't work anymore

I checked with you app aswell, HN must have changed something. How did you reverse engineer it? Maybe I can have a go at fixing it if you don't have the time.

Comment won't load

Comments won't load on the latest version of libHN. It seems to be working on older version of libHN.

Error after update 'data parameter is nil'

Seeing this error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'

Seems to be originating from HNManager.m, line 279

Login is broken/crashes

Hey @bennyguitar . I didn't realize this till recently but Login seems to be broken.

This is the crash:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'

The crash from the logs occurs here:

MackerNews                           0x000000010d5438f3 __51-[HNManager loginWithUsername:password:completion:]_block_invoke (HNManager.m:126)

I was trying to debug and I can't tell what changed on HN site. Looking at the breakpoints I set its going here: https://github.com/bennyguitar/libHN/blob/master/Source/HNWebService.m#L210

On the HN website the login form is still use "act" & "pw" fields for the form. So yeah not sure what's going on. Happy to debug further if you have any insights

AskHN- some commentID are not unique

I think this is because of the website than libHN.

I found out about it because I was using commentID to collapse and expand comments.

It seems that in a few of the Ask post, all of the comments have the same ID.

Also, so far I'm unable to NSLog the ParentID for any of the comments. They all return as null.

Broken feed

Multiple apps, including my HN Reader app have been broken for a few days now. Not sure if the recent commit broke the scraper?

loadPostsWithUrlAddition:[[HNManager sharedManager] postUrlAddition] , posts is never nil

I don't know if this is intentional, so my apology if it is not an issue. Just something I've noticed.

[[HNManager sharedManager] loadPostsWithUrlAddition:[[HNManager sharedManager] postUrlAddition] completion:^(NSArray *posts) {
if (posts) {}
else{}

The else condition never gets trigger.
Instead, I had to an another if condition inside
if (posts) { if ([posts count]==0) {}}

to keep it from slamming the server.

Comments are gone again

See title. I tested with proxy to be sure it isn't just slowbanned.

News/YC is also not showing any comments.

votedOnDictionary not syncing

I was wondering if you're having issues with this.
When I vote on a post, add it to the HNManager votedOnDictionary and reload my data, everything works correctly. The post is shown as voted on

But if I restart my app, it's showing as not voted on.

AskHN comment count always 0

I have noticed in AskHN, the post.commentCount is 0 even though there are many many comments.

This only happens with some of the AskHN post.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.