Post
Topic
Board Meta
Re: Python script to automatically delete or edit all bitcointalk posts
by
hugeblack
on 08/10/2023, 07:55:05 UTC

just enter the number you see in your profile and then hit enter. It will then open up a chrome browser with the login page for bitcointalk open, you will have 60 seconds to log in and when the 60 seconds are up, the script will start deleting and editing posts from your profile.
Note: When logging in, you should set number of minutes to be logged in to a higher number if you have many posts

You don't need that, you can create a config.ini file which can be in this format

Code:
[LOGIN]

# Enter your username and password
user = YOUR_USERNAME
pass = YOUR_PASSWORD

# after login go to -------> https://bitcointalk.org/captcha_code.php and copy that code
#Paste that code here
captcha_code = YOUR_CAPTCHA_CODE

Using ----> https://bitcointalk.org/captcha_code.php the user will not need to do this manually.


Code:
def login(
        self, user, pass, captcha_code
    ):

self.logger.info("Attempting to login...")
        session = HTMLSession()
        login_uri = "https://bitcointalk.org/index.php?action=login2;ccode={}".format(
            captcha_code
        )


Although I think your code is useful, unfortunately there are several bots that scrape data now.
You can communicate with some of the well-known people here, but I do not know who do this without us knowing them. Therefore, I assume that once data is published here, it will not be deleted.