Logik (OP)
|
|
April 26, 2013, 01:23:20 PM |
|
Sorry, posts are currently only viewable by requesting a topic/page combination. Did you need a way of accessing a post via its BitcoinTalk message id (like when you link to an individual post)? Or would any id do?
|
|
|
|
|
|
|
|
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
AuctionBot
Newbie
Offline
Activity: 9
Merit: 0
|
|
April 27, 2013, 04:36:39 PM |
|
Any idea of how you're going to handle the CAPTCHA for sending PMs?
|
|
|
|
dansmith
|
|
April 28, 2013, 11:42:15 AM |
|
Sorry, posts are currently only viewable by requesting a topic/page combination. Did you need a way of accessing a post via its BitcoinTalk message id (like when you link to an individual post)? Or would any id do? Any ID would do. I want new posts displayed in RSS feed style. So my script will remember the total amount of posts in a thread. Then when the total changes, the script fetches the last post. Actually, as I was writing this, I realised that I can achieve this by taking the page and calculating the amount of posts I want to discard by matching the amount of {} pairs. Then I can proceed to fetch the posts I need. Have you got any tool ready for the end-user? Ideally I want a tool that integrates with Thunderbird. In such case my script parses your API then converts new posts to RSS and acts as a local RSS server which sends new posts to TB.
|
|
|
|
Logik (OP)
|
|
April 29, 2013, 01:26:50 AM |
|
OK I can expose the database id for a post. Will do that tonight and post back here. You're aware of the existing API endpoints built into the forum yeah? They are reasonably limited but there is some support for new posts For example here is the endpoint for this thread https://bitcointalk.org/index.php?topic=154131&action=.xml - that's in XML. You can RSS an entire board but I'm not sure if you can RSS a particular thread.. for example here is RSS for the main board https://bitcointalk.org/index.php?&action=.xml;board=1;type=rss. Is what you're saying that you need an RSS feed for an individual thread? Someone else actually asked about that the other day on here. Was that you? Thanks for pointing out about the Captcha; I've never actually encountered that. I assume it triggers when you have sent a certain number of them?
|
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5194
Merit: 12976
|
|
April 29, 2013, 01:46:04 AM |
|
There's a CAPTCHA for PMs when you have less than 10 posts.
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
AuctionBot
Newbie
Offline
Activity: 9
Merit: 0
|
|
April 29, 2013, 02:58:05 PM |
|
Thanks for clearing that up Theymos.
Also, I had no idea about the XML endpoints. It doesn't seem to work on a thread-by-thread basis. It would make scraping a hell of a lot easier.
|
|
|
|
|
dansmith
|
|
April 30, 2013, 11:23:03 AM |
|
Logik, thank you for working on your API. Actually the URL seems like an XML list for the whole Meta board, not this thread. Is what you're saying that you need an RSS feed for an individual thread? Someone else actually asked about that the other day on here. Was that you? Yes, I need an RSS feed for a specific thread. No, I did not ask you about that earlier.
|
|
|
|
Logik (OP)
|
|
April 30, 2013, 12:22:21 PM |
|
Logik, thank you for working on your API. Actually the URL seems like an XML list for the whole Meta board, not this thread. Is what you're saying that you need an RSS feed for an individual thread? Someone else actually asked about that the other day on here. Was that you? Yes, I need an RSS feed for a specific thread. No, I did not ask you about that earlier. Hmm you're right about the link I posted. SMF developers confuse me: they implement a nice API for boards and not for topics.. I added post ids to the end points. Anyway I had an idea about how to implement RSS for threads, I might try it out tomorrow. My idea was to have a bot account subscribe via email to the thread, then have an email hook that receives the email notification and then updates the database which the RSS feed points to. I just don't know how scaleable that would be. I wonder if there is a subscription limit.
|
|
|
|
dansmith
|
|
April 30, 2013, 02:13:23 PM |
|
Logik, before you go any further, just wanted to let you know that I've found a nice workaround: https://bitcointalk.org/index.php?topic=154131;sa=recent;limit=255;action=.xml;type=rssWill give 255 recent feeds for the board. Then I will add a Thunderbird filter to filter out only the topics I need. I guess it will work for now. If I set my TB to check the feed, every 30 mins., it is unlikely that more than 255 new posts will be made in that board within 30 mins and so it is unlikely that those 255 posts within 30 mins will drown the post that I need. The drawback (maybe) is additional strain on the server.
|
|
|
|
Logik (OP)
|
|
May 01, 2013, 03:42:50 AM |
|
Yeah thats the closest we can get I suppose. I need to make a generic way to 'listen' to threads anyway. I'm going to test out the email approach soon.
|
|
|
|
dansmith
|
|
July 02, 2013, 08:36:37 AM |
|
@theymos, May I suggest that my workaround in #30 be displayed prominently for those who sign up for the forum? Maybe put it into their first Welcome PM message.
I remember my own frustration with keeping track of multiple threads. Now I have 20+ threads that I'm watching sitting nicely in my Thunderbird.
|
|
|
|
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
Offline
Activity: 1316
Merit: 1043
👻
|
|
July 15, 2013, 12:44:07 PM Last edit: July 15, 2013, 01:44:29 PM by TradeFortress |
|
Is it possible to get a particular message?
|
|
|
|
whiskers75
|
|
July 15, 2013, 04:17:36 PM Last edit: July 15, 2013, 05:32:00 PM by whiskers75 |
|
Is it possible to get a particular message?
ATM, you just have to go through the threads to find it. (If I'm right, quote me - TradeFortress is ignoring me right now) Edit: here: Sorry, posts are currently only viewable by requesting a topic/page combination. Did you need a way of accessing a post via its BitcoinTalk message id (like when you link to an individual post)? Or would any id do?
Quote me!
|
|
|
|
dexX7
Legendary
Offline
Activity: 1106
Merit: 1024
|
|
July 15, 2013, 10:35:06 PM |
|
Great! Good work! I'm still wondering, if there is any way to get "recent posts by user" in a more parsable format. So far I was unable to add wap2 or xml to the list of user posts, but I never found out, if I just used the wrong syntax or if this is not possible. Any hint would be appreciated.
|
|
|
|
kikkoman99
Jr. Member
Offline
Activity: 30
Merit: 1
|
|
December 05, 2017, 09:08:14 PM |
|
I know this is a very old topic but is there any official documentation for a BCT API since this post or is what is linked in this thread the most up to date? Thanks!
|
|
|
|
mprep
Global Moderator
Legendary
Offline
Activity: 3766
Merit: 2610
In a world of peaches, don't ask for apple sauce
|
|
December 05, 2017, 09:13:21 PM |
|
I know this is a very old topic but is there any official documentation for a BCT API since this post or is what is linked in this thread the most up to date? Thanks!
There is no official Bitcointalk API.
|
|
|
|
|