Bitcoin Forum
March 19, 2024, 02:39:58 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [C# / .NET] Unofficial Bitcointalk API - Get info from boards, topics and posts  (Read 5046 times)
mprep (OP)
Global Moderator
Legendary
*
Offline Offline

Activity: 3752
Merit: 2607


In a world of peaches, don't ask for apple sauce


View Profile WWW
February 09, 2017, 05:45:38 PM
Last edit: February 09, 2017, 06:37:40 PM by mprep
Merited by Welsh (12), suchmoon (4), hugeblack (4), mocacinno (1), Piggy (1)
 #1

A while ago I made a few personal utilities that required at least a somewhat streamlined API for fetching Bitcointalk posts. After a bit of refractoring, small corrections to the code and a bunch of added comments, I present you:

The Unofficial Bitcointalk API v0.51

Features:
  • Fetch topics from board pages and posts from topic pages or the "Recent Posts" page.
  • Get post's message*, URL, title, number in topic, creation date, author's username and profile link.
  • Quickly fetch post messages from the entire topic (other data will require additional fetching).
  • Fully commented code for developing extensions / different versions.

The message is stripped of code fields, quotes, images, links (as in URLs), smileys (replaced with a selected string) and new lines / line breaks. Feel free to create your own modification or express your interest here and I might implement it.

Installation instructions, examples and licensing info:

See the project's readme: https://github.com/mprep-btc/Unofficial-Bitcointalk-API


Donations are welcome: 1mprepxqZeK7LcRYEz84DVJKCvF8CQ8gu

1710815998
Hero Member
*
Offline Offline

Posts: 1710815998

View Profile Personal Message (Offline)

Ignore
1710815998
Reply with quote  #2

1710815998
Report to moderator
1710815998
Hero Member
*
Offline Offline

Posts: 1710815998

View Profile Personal Message (Offline)

Ignore
1710815998
Reply with quote  #2

1710815998
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710815998
Hero Member
*
Offline Offline

Posts: 1710815998

View Profile Personal Message (Offline)

Ignore
1710815998
Reply with quote  #2

1710815998
Report to moderator
1710815998
Hero Member
*
Offline Offline

Posts: 1710815998

View Profile Personal Message (Offline)

Ignore
1710815998
Reply with quote  #2

1710815998
Report to moderator
1710815998
Hero Member
*
Offline Offline

Posts: 1710815998

View Profile Personal Message (Offline)

Ignore
1710815998
Reply with quote  #2

1710815998
Report to moderator
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3416
Merit: 6080



View Profile
December 09, 2018, 08:57:14 AM
 #2

Assuming that you still need feedback about this, It's unable to parse some sections. I've tried Beginners & Help and Legal sections and it worked just fine however for Bitcoin discussion and Digital goods, I'm having the following error:



My guess is it's because of the subsections that these sections have but not sure If it's possible to get the link for "Digital goods" without having the others included inside the page.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BitCoinDream
Legendary
*
Offline Offline

Activity: 2296
Merit: 1204

The revolution will be digital


View Profile
December 09, 2018, 03:15:22 PM
 #3

Something in JSON format would have been great. Could have been accessible from PHP as well.

OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3416
Merit: 6080



View Profile
December 10, 2018, 05:08:12 PM
 #4

Something in JSON format would have been great. Could have been accessible from PHP as well.

The current forum doesn't have one so what you can do is very limited, but epochtalk which is still under development has a REST API.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!