Pages:
Author

Topic: [Script] Imgur to TalkImg - automatically fix your broken images - page 4. (Read 2052 times)

legendary
Activity: 2114
Merit: 15144
Fully fledged Merit Cycler - Golden Feather 22-23
I would also like to share here the latest update about the TalkImg.com server update process
Looking forward to it. Good luck brother.

@TryNinja, finally it's all done!



Hell! It's a lot of work that was done by the script. 10K plus posts! Quite an achievement to be honest.

just i am curios, time for do this?
10k posts is so much Cheesy

anyway is a great job about talkimg owner and about tryninja
fillippone have a crisis when imgur decide to delete all images and Smiley this save the day

when i have merits i distribute to talkimg owner and tryninja Cheesy

I have done 25% of the job in 4 hours.
Waiting for talkimg to resume uploads, as I hit some kind of threshold on imgbb and I cannot upload there anymore.
legendary
Activity: 3528
Merit: 4042
I would also like to share here the latest update about the TalkImg.com server update process
Looking forward to it. Good luck brother.

@TryNinja, finally it's all done!



Hell! It's a lot of work that was done by the script. 10K plus posts! Quite an achievement to be honest.

just i am curios, time for do this?
10k posts is so much Cheesy

anyway is a great job about talkimg owner and about tryninja
fillippone have a crisis when imgur decide to delete all images and Smiley this save the day

when i have merits i distribute to talkimg owner and tryninja Cheesy
legendary
Activity: 2702
Merit: 2645
Farewell LEO: o_e_l_e_o
I would also like to share here the latest update about the TalkImg.com server update process
Looking forward to it. Good luck brother.

@TryNinja, finally it's all done!



Hell! It's a lot of work that was done by the script. 10K plus posts! Quite an achievement to be honest.
legendary
Activity: 3668
Merit: 2218
💲🏎️💨🚓
the script ended with me immediately after the execution.

Uploads are paused.  Try again later.
legendary
Activity: 3122
Merit: 7618
Crypto Swap Exchange
the script ended with me immediately after the execution.
an imgbb account is available and was together with the api key in the script - anyone an idea what it can be? Roll Eyes

legendary
Activity: 1638
Merit: 4508
**In BTC since 2013**
I would also like to share here the latest update about the TalkImg.com server update process:

SITUATION STATUS:
I'm on the final face of the server upgrade process. I will now start migrating data to the new server.
To ensure that no images are lost during this process, uploads will be paused.

In this sense, during the next few hours, it will not be possible to make new uploads. But, the images continued to function normally in the forum. There will be no problems displaying the images.

Once again, thank you for your understanding. Soon everything will be back to normal.

legendary
Activity: 3528
Merit: 4042
very good code, i am just curious and inspect it on gist

clean coded and do everything

one stuff not convincing me: edit

probably is usefull a "not edit version" without edit for permit folks like me help guy like fillippone

or better a useful solution is upload a image like imgur.com/blabla111.jpg in talkimg.com/blabla111.jpg with same hashid/userid for easy transation from fucking-imgur and new service

just my two cents
full member
Activity: 1489
Merit: 150
i just try the script and i add my API from ImgBB but it's still not working for me.
i use google chrome and the number of pages shown in the script is correct.
On which steps that i got wrong? or is it just all the image already got deleted?
legendary
Activity: 2702
Merit: 2645
Farewell LEO: o_e_l_e_o
What am I missing now?
Go to https://bitcointalk.org/index.php?action=profile;sa=showPosts

How many pages do you see? And which browser are you using?

Feel free to message me over telegram @TryNinja so we can debug this faster.
I don't use scammers heaven LOL

By the way, it's working fine now. It seems you also worked on the error handling about the pages which are locked. Let's hope I am able to update all posts that is containing images out of 10K plus posts 🤣

The account on imgbb.
I created an account with a temp email which means after making this update once I will close my browser I will forget about it. In that case if imgbb close the account for inactivity then it seems all the images uploaded from this account will be removed [Possibly]. We really need talkimg to comeback and able to take loads.
legendary
Activity: 2758
Merit: 6830
What am I missing now?
Go to https://bitcointalk.org/index.php?action=profile;sa=showPosts

How many pages do you see? And which browser are you using?

Feel free to message me over telegram @TryNinja so we can debug this faster.
legendary
Activity: 2702
Merit: 2645
Farewell LEO: o_e_l_e_o
How do I get the API Key of imgbb. I did not need it yesterday though. It seems I need to register with them. Hopefully there is a chance to skip it.
1. Create your account: https://imgbb.com/signup
2. Go to the API page and click "Get API key": https://api.imgbb.com


If I understand correctly, I did everything correctly.



What am I missing now?

I see a problem, though it's about registering with imgbb but let's figure out how to run the script properly then we can talk about that later.
legendary
Activity: 2758
Merit: 6830
How do I get the API Key of imgbb. I did not need it yesterday though. It seems I need to register with them. Hopefully there is a chance to skip it.
1. Create your account: https://imgbb.com/signup
2. Go to the API page and click "Get API key": https://api.imgbb.com
legendary
Activity: 2702
Merit: 2645
Farewell LEO: o_e_l_e_o
Since there is a risk (?) of imgur deleting images today, I decided to add ImgBB as a image provider while TalkImg is under maintenance.

Just change the field "provider" at the top to "imgbb" (IMPORTANT: ALL LOWERCASE) and add your account's API key just a few lines below (providers -> imgbb -> apiKey).

Example:

Code:
const provider = 'imgbb'

Code:
imgbb: {
    url: 'https://api.imgbb.com/1/upload',
    apiKey: 'YOUR-API-KEY',
    uploadsPerMinute: 10,
    deleteOnError: false,
}

Run the script and the images will be uploaded to imgbb + your posts updated.

The script is now published (and will be updated) here: https://gist.github.com/ninjastic/36c14fb2eb1c4b750f40f332d408688f



People who are making translations and/or posting on their own local threads, please don't put the code directly on your local threads since I'm always fixing something here or there and your code will most likely be outdated. Instead, link this thread and tell people to get the code from here.

cc @Eternad @Charles-Tim (which I saw posting the script somewhere else)
Good job brother.

Questions:
How do I get the API Key of imgbb. I did not need it yesterday though. It seems I need to register with them. Hopefully there is a chance to skip it.
legendary
Activity: 2758
Merit: 6830
Since there is a risk (?) of imgur deleting images today, I decided to add ImgBB as a image provider while TalkImg is under maintenance.

Just change the field "provider" at the top to "imgbb" (IMPORTANT: ALL LOWERCASE) and add your account's API key just a few lines below (providers -> imgbb -> apiKey).

Example:

Code:
const provider = 'imgbb'

Code:
imgbb: {
    url: 'https://api.imgbb.com/1/upload',
    apiKey: 'YOUR-API-KEY',
    uploadsPerMinute: 10,
    deleteOnError: false,
}

Run the script and the images will be uploaded to imgbb + your posts updated.

The script is now published (and will be updated) here: https://gist.github.com/ninjastic/36c14fb2eb1c4b750f40f332d408688f



People who are making translations and/or posting on their own local threads, please don't put the code directly on your local threads since I'm always fixing something here or there and your code will most likely be outdated. Instead, link this thread and tell people to get the code from here.

cc @Eternad @Charles-Tim (which I saw posting the script somewhere else)
legendary
Activity: 1638
Merit: 4508
**In BTC since 2013**
I would say a few thousands. I have 12k posts, my guesstimate is around a third post with images. This means 4k images.

But I am confident about @joker_josue will finish his mantenaince before it’s too late, and I will be able to use his script.

Yeah... it might be a little high flow, for this moment of changes in the server.
I'll see what I can do in the meantime. (I sent PM)
legendary
Activity: 2114
Merit: 15144
Fully fledged Merit Cycler - Golden Feather 22-23
I have 12k posts, my guesstimate is around a third post with images. This means 4k images.
How often did you add images by editing your post? I won't have those, but I should have the majority.

Not that often I think.
The vast majority of posts have images already included.
But I am confident about @joker_josue will finish his mantenaince before it’s too late, and I will be able to use his script.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I have 12k posts, my guesstimate is around a third post with images. This means 4k images.
How often did you add images by editing your post? I won't have those, but I should have the majority.
legendary
Activity: 2114
Merit: 15144
Fully fledged Merit Cycler - Golden Feather 22-23
Sadly, imugur is going to delete pictures today, unless you uploaded those via an account.

Can you indicate more or less how many images you have to carry out the process?

I would say a few thousands. I have 12k posts, my guesstimate is around a third post with images. This means 4k images.
legendary
Activity: 1638
Merit: 4508
**In BTC since 2013**
Sadly, imugur is going to delete pictures today, unless you uploaded those via an account.

Can you indicate more or less how many images you have to carry out the process?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
Sadly, imugur is going to delete pictures today, unless you uploaded those via an account.
Who's going to secure images on the Investigations board? I never scraped that board.
Pages:
Jump to: