-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hit count sample no longer works #36
Comments
😢 I suppose we could place an issue here: https://github.com/haskell-infra/hl |
I was thinking that a nice replacement example would be the Hackage page for this package: http://hackage.haskell.org/package/tagsoup. The example could extract the "Downloads" count from this page. I would rewrite the sample myself, but I haven't figured out how to use the package yet! |
You could just switch it to the last modified date at https://wiki.haskell.org/Haskell, which contains the same markup as it did before (I think):
Which make the example something like:
Alternately, to get the "Downloads" count you were looking for on the hackage page, something like the following should work, I think:
|
👍 for Downloads count |
I'll update the example to use last modified date for now. If I have time, I'll add an example that does download count too. |
@rcook It appears that https://github.com/ndmitchell/tagsoup/blob/master/TagSoup/Sample.hs is where this would go. |
@theking42 : Thanks! |
Fixes #36: Update first sample to extract last modified date from Haskell wiki
Thanks @rcook and @theking42 for your patches and figuring out the problem and solution. I raised #40 to use Travis to run the demos, and hopefully catch such issues before users run into them. |
Unfortunately, the URL in the hit count example in
README.md
, i.e.http://www.haskell.org/haskellwiki/Haskell
, returns a 302 "moved temporarily" HTTP response. I'll see if I can figure out a way to rewrite the sample to work.Update: I tried changing the URL to
https://wiki.haskell.org/Haskell
. Unfortunately, the new front page no longer includes a hit count.The text was updated successfully, but these errors were encountered: