LoyceV
Legendary
Offline
Activity: 3444
Merit: 17390
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
September 21, 2020, 09:52:58 AM |
|
POST https://bitcointalk.org/index.php?action=merit;msg=55234944
body { merits: 1 msgID: 55234944 sc: 10fd66fd5a757e4b3be2a050785c27a5 } If there's a way to post this with wget I'm interested. That reminds me: I had a working python script for posting on the forum, but it stopped working 3 years ago and I never got a replacement. I could do fun things with automated posting.
|
|
|
|
TryNinja
Legendary
Offline
Activity: 2968
Merit: 7379
|
|
September 21, 2020, 10:38:40 AM Last edit: September 26, 2020, 09:10:37 PM by TryNinja |
|
If there's a way to post this with wget I'm interested. That reminds me: I had a working python script for posting on the forum, but it stopped working 3 years ago and I never got a replacement. I could do fun things with automated posting. This works: wget 'https://bitcointalk.org/index.php?action=merit;msg=55224119' \ --no-http-keep-alive \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cookie: __cfduid=XXXXXXXXXXXXXXXXXXXX; SMFCookie129=YYYYYYYYYYYYYYYYYYYYYYYYY; sessionid=ZZZZZZZZZZZZZZZZZZZZZZ' \ --post-data 'merits=1&msgID=55224119&sc=ZZZZZZZZZZZZZZZZZZZZZZ' &> /dev/null You just need to figure out how to get the "sc" and your cookies. You could put them manually or do what I'm doing with my Telegram bot when it gets logged out: login and get the cookies (which also gives you the "sc" code). edit: hmm... did you want a literal "post"? I still think you said post as send the (merit) post request. edit 2: updated with a potential fix for the "session expired" issue.
|
|
|
|
LoyceBot
Full Member
Online
Activity: 191
Merit: 101
I'm a Bot!
|
|
September 21, 2020, 11:33:13 AM |
|
edit: hmm... did you want a literal "post"? Yes
|
Don't contact LoyceBot, contact LoyceV for inquiries
|
|
|
TryNinja
Legendary
Offline
Activity: 2968
Merit: 7379
|
|
September 21, 2020, 11:44:00 AM Last edit: September 26, 2020, 09:10:08 PM by TryNinja |
|
Posting with wget... edit: wget 'https://bitcointalk.org/index.php?action=post2' \ --no-http-keep-alive \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cookie: __cfduid=XXXXXXXXXXXXXXXXXXXX; SMFCookie129=YYYYYYYYYYYYYYYYYYYYYYYYY; sessionid=ZZZZZZZZZZZZZZZZZZZZZZ' \ --post-data 'topic=5117342&subject=Test&icon=xx&message=Posting with wget...¬ify=0&post=Post&additional_options=0&sc=CCCCCCCCCCCCCCCCCCC' edit 2: updated with a potential fix for the "session expired" issue.
|
|
|
|
AB de Royse777
Legendary
Offline
Activity: 2618
Merit: 4066
Hire Bitcointalk Camp. Manager @ r7promotions.com
|
|
September 22, 2020, 10:05:25 AM |
|
Posting with wget...
Can you write English :-D I mean, I would like an instructional post so that I can use this code and try my own. My knowledge about all these are zero but I am confident that with some English language I will be able to set it up if this is a complete scrip. Cheers
|
..Stake.com.. | | | ▄████████████████████████████████████▄ ██ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ██ ▄████▄ ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██ ██████ ██ ██████████ ██ ██ ██████████ ██ ▀██▀ ██ ██ ██ ██████ ██ ██ ██ ██ ██ ██ ██████ ██ █████ ███ ██████ ██ ████▄ ██ ██ █████ ███ ████ ████ █████ ███ ████████ ██ ████ ████ ██████████ ████ ████ ████▀ ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██ ██ ▀▀▀▀▀▀▀▀▀▀ ██ ▀█████████▀ ▄████████████▄ ▀█████████▀ ▄▄▄▄▄▄▄▄▄▄▄▄███ ██ ██ ███▄▄▄▄▄▄▄▄▄▄▄▄ ██████████████████████████████████████████ | | | | | | ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▀▄ █▀▀█▀▄▄ █ █▀█ █ ▐ ▐▌ █ ▄██▄ █ ▌ █ █ ▄██████▄ █ ▌ ▐▌ █ ██████████ █ ▐ █ █ ▐██████████▌ █ ▐ ▐▌ █ ▀▀██████▀▀ █ ▌ █ █ ▄▄▄██▄▄▄ █ ▌▐▌ █ █▐ █ █ █▐▐▌ █ █▐█ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█ | | | | | | ▄▄█████████▄▄ ▄██▀▀▀▀█████▀▀▀▀██▄ ▄█▀ ▐█▌ ▀█▄ ██ ▐█▌ ██ ████▄ ▄█████▄ ▄████ ████████▄███████████▄████████ ███▀ █████████████ ▀███ ██ ███████████ ██ ▀█▄ █████████ ▄█▀ ▀█▄ ▄██▀▀▀▀▀▀▀██▄ ▄▄▄█▀ ▀███████ ███████▀ ▀█████▄ ▄█████▀ ▀▀▀███▄▄▄███▀▀▀ | | | ..PLAY NOW.. |
|
|
|
DdmrDdmr
Legendary
Offline
Activity: 2436
Merit: 10991
There are lies, damned lies and statistics. MTwain
|
|
September 22, 2020, 11:04:46 AM |
|
The procedure I’ve been using so far is not that cool, and requires me to be at the keyboard clicking away like mad for the duration of the spree, with some SQL to select the URLs, and a plugin to open the URLs in batches. Lately, I was playing around a bit with python to scrape profiles for now (seems to work now). Just when I finished monkeying around on this last spree, I thought I could try to do it in python, similarly to the scraper procedure, and I didn’t really give it a go until after seeing updates on this thread. It seemed rather straight forward (although I’m novel on python, which makes me progress slowly), until I encountered that the I was not retrieving the "sc" value properly for the post command (I thought I was retrieving the proper value, but was not, leading to an expired session message when issuing the post command, which drove me nuts thinking it was something to do with the cookies). The code is crap for now, but I managed award the last six merits on two separate tests using python: • Today at 11:39:46 AM: 1 to salsacz for Re: Nxt marketing & promotion :: Enjoy Nxt on Bitcoinwisdom (erroneoulsy awarded) • Today at 11:39:46 AM: 1 to TheBeardedBaby for Re: [FUN] Is DdmrDdmr even human? • Today at 11:39:45 AM: 1 to fillippone for Re: [FUN] Is DdmrDdmr human? • Today at 11:28:41 AM: 1 to hugeblack for Re: Help on how to fix on table. • Today at 11:28:32 AM: 1 to TryNinja for Re: [FUN] Is DdmrDdmr even human? (deliberate) • Today at 11:22:56 AM: 1 to TryNinja for Re: [FUN] Is DdmrDdmr even human?
Of course, when one manually edits a MessageId and accidently leaves out a digit, you get to merit a stray post from 2014 on the Altcoin board (cost of not having debugged the second test run I did over the last 3 awarded sMerits …). Now it’s a question of placing the URLs to merit in a DB table, connect and loop and mark as done (watching out for cloudflare). I may try that next time round I go on one of these sprees.
|
|
|
|
TryNinja
Legendary
Offline
Activity: 2968
Merit: 7379
|
|
September 22, 2020, 12:18:10 PM |
|
Can you write English :-D I mean, I would like an instructional post so that I can use this code and try my own. My knowledge about all these are zero but I am confident that with some English language I will be able to set it up if this is a complete scrip.
This is more for those that understand the basics of a language and can somehow implement those ideas. I'm just showing how the requests are handled on the forum so you can merit or post with a simple HTTP request. From that, you can use JS, Python or your UNIX terminal to do whatever you want with it. If you know how to make a HTTP POST request then, well... it's basically what I posted above. POST request to https://bitcointalk.org/index.php?action=post2 with the headers I already mentioned and your account cookies. The body of the request has the fields: topic=5117342 subject=Test icon=xx message=Posting with wget... notify=0 post=Post additional_options=0 sc=ZZZZZZZZZZZZZZZZZZZZZZ Where sc is the code we already talked above before. You can literally copy the wget command I posted, change what you need to change (cookies, sc, post subject, body, topic id), paste on your UNIX terminal (e.g if you're on Ubuntu) and press enter. For more sofisticated solutions, that's on you for what exactly you want.
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3444
Merit: 17390
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
September 26, 2020, 10:10:08 AM |
|
Posting with wget... wget 'https://bitcointalk.org/index.php?action=post2' \ --header 'authority: bitcointalk.org' \ --header 'origin: https://bitcointalk.org' \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51' \ --header 'sec-fetch-site: same-origin' \ --header 'sec-fetch-mode: navigate' \ --header 'sec-fetch-user: ?1' \ --header 'sec-fetch-dest: document' \ --header 'cookie: __cfduid=XXXXXXXXXXXXXXXXXXXX; SMFCookie129=YYYYYYYYYYYYYYYYYYYYYYYYY; sessionid=ZZZZZZZZZZZZZZZZZZZZZZ' \ --post-data 'topic=5117342&subject=Test&icon=xx&message=Posting with wget...¬ify=0&post=Post&additional_options=0&sc=ZZZZZZZZZZZZZZZZZZZZZZ' I got it "a bit" working: it works when posting in this topic, but if I change 5117342 to 1768750, it doesn't work.This is what I get on console: Sometimes it works: --2020-09-26 11:47:15-- https://bitcointalk.org/index.php?action=post2 Resolving bitcointalk.org (bitcointalk.org)... 104.20.208.69, 104.20.209.69, 172.67.19.123, ... Connecting to bitcointalk.org (bitcointalk.org)|104.20.208.69|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://bitcointalk.org/index.php?board=129.0 [following] --2020-09-26 11:47:16-- https://bitcointalk.org/index.php?board=129.0 Reusing existing connection to bitcointalk.org:443. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: '/tmp/posttest.html' Sometimes it doesn't work: --2020-09-26 11:51:04-- https://bitcointalk.org/index.php?action=post2 Resolving bitcointalk.org (bitcointalk.org)... 172.67.19.123, 104.20.209.69, 104.20.208.69, ... Connecting to bitcointalk.org (bitcointalk.org)|172.67.19.123|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: '/tmp/posttest.html' If I check the output HTML, it shows this: Your session timed out while posting. Please try to re-submit your message. A bit later it works again with the exact same sessions. But if I wget the topic first using the same cookies, it works again. Somehow the session becomes invalid. I'm not sure yet why, but I can work with this. Thanks!
|
|
|
|
suchmoon
Legendary
Offline
Activity: 3794
Merit: 9018
https://bpip.org
|
|
September 26, 2020, 04:10:09 PM |
|
If I check the output HTML, it shows this: Your session timed out while posting. Please try to re-submit your message. A bit later it works again with the exact same sessions. But if I wget the topic first using the same cookies, it works again. Somehow the session becomes invalid. I'm not sure yet why, but I can work with this. Thanks! It's exactly what it says - a timeout, the sc value is valid only for a certain period. Always fetch a new sc before posting.
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3444
Merit: 17390
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
September 26, 2020, 05:28:59 PM |
|
It's exactly what it says - a timeout, the sc value is valid only for a certain period. Always fetch a new sc before posting. I did, but the sc I wget right before trying to post seems to expire instantly.
|
|
|
|
TryNinja
Legendary
Offline
Activity: 2968
Merit: 7379
|
|
September 26, 2020, 08:31:59 PM Last edit: September 26, 2020, 09:29:18 PM by TryNinja |
|
I have no idea why, but I also keep getting the "session expired" error with the code I used previously (with the right sc/sessionid).
I tried this one on two different servers and it seems to be working (maybe some extra headers were required?):edit: I have no idea how this works. First of all, most of the headers are actually useless. 1. I can make this work: wget 'https://bitcointalk.org/index.php?action=post2' \ --no-http-keep-alive \ --no-cache \ --header 'content-type: application/x-www-form-urlencoded' \ --header 'cookie: __cfduid=AAAAAAAAAAAAAA; SMFCookie129=BBBBBBBBBBBBBBBBB; sessionid=CCCCCCCCCCCCCCCC' \ --post-data 'subject=test&message=Posting with wget&topic=5278410&sc=DDDDDDDDDDDDDDDDD' 2. And I think adding those may help --no-http-keep-alive \ --no-cache \ But sending it many times I notice that sometimes it gives me the "session expired" error, and sometimes it just works. It's a loterry. I will make some experiments.
|
|
|
|
PrimeNumber7
Copper Member
Legendary
Offline
Activity: 1652
Merit: 1900
Amazon Prime Member #7
|
|
September 27, 2020, 10:46:29 PM Merited by JayJuanGee (1) |
|
That reminds me: I had a working python script for posting on the forum, but it stopped working 3 years ago and I never got a replacement. I could do fun things with automated posting. You can use splinter (a python package) to post via automation. See lines 53-58 of my automod bot for how to login via automation. Logging in requires you to fill text boxes with text (your username and password), which is what you do when you post. You can find the documentation for filling text in a text box in your browser. A drawback of using splinter is it doesn't have a good way of knowing if a page has finished loading. If you are running into issues with pages not loading quickly enough, you can use time.sleep(x) with x being the number of seconds you estimate will be sufficient for pages to load, or you can use the requests package. Requests is a little more tricky to use with sites requiring authentication.
|
|
|
|
LoyceV
Legendary
Offline
Activity: 3444
Merit: 17390
Thick-Skinned Gang Leader and Golden Feather 2021
|
|
September 29, 2020, 11:06:33 AM |
|
You can use splinter (a python package) to post via automation. This goes far above my capabilities I used to have a working python script for posting, but it stopped working at some point and I don't know why. It looks like TryNinja ran into the same problems with wget as I did. I don't really need a posting bot, but I could do nice things with it if I have one again. Posting a link as response to a post for instance, instead of just external data dumps.
|
|
|
|
Alucard1
|
|
September 29, 2020, 01:14:35 PM |
|
@DdmrDdmr is also one of my top merit contributors, I am so thankful to him because it always give me motivation whenever I received merit, and most of the time is because of him as a beginner this thing is normal. I always checked his profile out of curiosity and he is always giving so many merits every day, I wonder how many hours he spends on this forum for giving merits and posting as well. He seems so loyal and a good member of this forum and it can be seen on his profile. Thanks a lot to him.
|
|
|
|
fillippone (OP)
Legendary
Online
Activity: 2296
Merit: 16409
Fully fledged Merit Cycler - Golden Feather 22-23
|
|
April 13, 2021, 04:19:49 PM |
|
I felt a disturbance in the merits.
I just received a single, odd merit from @ddmrddmr. I recognise another spree in ongoing. Waiting for the details.
|
|
|
|
DdmrDdmr
Legendary
Offline
Activity: 2436
Merit: 10991
There are lies, damned lies and statistics. MTwain
|
|
April 13, 2021, 04:27:28 PM Last edit: April 14, 2021, 05:59:18 AM by DdmrDdmr Merited by Charles-Tim (1) |
|
<...>
Can't go on silent mode behind the scenes these days, with all those darn bots … (kidding) 186 profiles merited (by me) in under 3 minutes – What’s got over me? (v 8.0)I log my sprees on the above thread, to record the criteria I used and the overall amount awarded. My intention was to merit 190 profiles, but 4 must have been banned or recently ignore accounts (either that, or my process skips a beat every now and then). <…> I wish I could spray merits like that, but I do it the old-fashioned way by judging posts as I read them <…>
That’s what I do, but when I accumulate for a while, I remerit some of my previously already read and merited messages (no machine learning AI yet).
|
|
|
|
The Sceptical Chymist
Legendary
Offline
Activity: 3458
Merit: 6956
Top Crypto Casino
|
He was on drugs?
Man, I can't think of a drug in existence that would allow a human being to distribute that many merits across so many threads that quickly--so that's some evidence in favor of DmdrDmdr not being human. I looked at that page and was amazed myself. I don't know what kind of bot he used (even though he explained it), but hopefully those members who got some of those merits were truly deserving of them. I wish I could spray merits like that, but I do it the old-fashioned way by judging posts as I read them (and 90% or more are pure crap).
|
|
|
|
Poker Player
Legendary
Offline
Activity: 1512
Merit: 2174
|
|
April 14, 2021, 04:34:45 PM |
|
I checked the list. He sent the merits to the old posts which already merited by him. He has too much merits and no time so he sent merits equaaly to the old merited posts by himself.
That’s what I do, but when I accumulate for a while, I remerit some of my previously already read and merited messages (no machine learning AI yet).
Thanks to this thread, and these comments, I've found the answer. I was curious about this and I was thinking of sending him a PM because it has happened to me the times he has merited me, that after a while he would send me a merit again for the same post. In fact the last time was yesterday, and I didn't know why this pattern was happening.
|
|
|
|
Kittygalore
Member
Offline
Activity: 868
Merit: 63
|
|
April 16, 2021, 07:41:17 AM |
|
That’s what I do, but when I accumulate for a while, I remerit some of my previously already read and merited messages (no machine learning AI yet).
Is that even permitted or not eyebrow raising since you are spraying and praying basically your merits. I am sure that if I were to do that kind of thing, I would be flagged as merit abusing, what's the secret?
|
|
|
|
DdmrDdmr
Legendary
Offline
Activity: 2436
Merit: 10991
There are lies, damned lies and statistics. MTwain
|
|
April 16, 2021, 07:46:40 AM |
|
<…>
The secret is in reading the criteria used, and furthermore, understanding it. Remeriting some posts with an additional +1, when they initially likely received a +1 to begin with, is basically the same as having given them +2 initially. Remeriting by the criteria I use, is a means to avoid them being wasted. Were the boss to be contrary to my criteria, I have no issue letting them burn.
|
|
|
|
|