Mass Wordpress Blog Post

So i’m currently working on a novel website that using wordpress to post, and i have made a tool that can mass upload/post the novel to the site, but there is a problem. The tool that i made can only post 1 novel/chapter every second and the hit that the tool need to send to the site is about 2 to 4 hit (im guessing, i cant really tell the real number since the stats is not update in realtime), and infinityfree only allow 50000 hit a day, but i want to mass upload/post the novel in the same day and i dont want to wait 24 hours to be able to re-post the novel (and if i use all of that 50000 hits, my website will be temporary suspended, and if this repeat offently then my site will be cooked).

The novel that i got and want to post into the site is a txt file that have this format:
Chapter (number): (chapter name)
(content)

and i use python to extract the txt file and send request to my wordpress site. But i think i cant really use the tool that i made anymore because of the hit limit, i have to find a different methods that can mass upload/post my novel into the site without using all of the hit. Now if you are asking yourself why tf dont i just manually post the novel into the site using normal Wordpress blog, that because it is too slow (the novel that i want to post is about 5000 chapter) and it will require even more hit than using api. I tried to create a php script that can extract data from my txt file but it does not really work cuz idk how to make the script talk to wordpress “locally”. If you have any idea or know how to mass upload the blog in Wordpress, please comment it below, i’m really appreciate it.

For starters, I will say that your use case is highly unusual. Nobody really designed their blogging system to publish 5000 posts or pages in a single day.

Second, I think your Python import script is probably not going to work because of this security system:

At the same time, 5,000 hits is not 50,000 hits, so it might be that the hits limit is not the thing to worry about.


Still, I would opt for a WordPress plugin to do it. A quick Google search tells me that there are various plugins that can do bulk importing of posts and pages, such as this one: WP Import – Ultimate CSV XML Importer for WordPress – WordPress plugin | WordPress.org

Note that most import plugins assume your content is in a CSV file. But if you were able to code an importer script yourself, then turning your custom chapter file format into a spreadsheet shouldn’t be a problem.

If you insist on doing something that can import your custom format, I would still go for the plugin route, but consider creating a custom plugin. That’s also the best way to get access to WordPress directly from within WordPress itself, without having to use the REST API.

6 Likes

Hmmm im kinda worry that the uploader isnt gonna let me import the file (like 5000 chapter, the raw text file is about 100mb, after proccess i think it is about 200 or 300mb), if it can then the ifastnet server is just gonna make it gone for 0,1 second so i think it is quite impossible, i tried the plugin on my localhost wordpress and it work pretty well but the problem is the post isnt have correct order, for example i want to post the chapter from 1, 2, 3, 4 but the plugin decide to go drug and just place the chapter randomly like 4,2,1,3, it is super annoying, the fact that the plugin work but it make the reader took more time to search for the chapter instead of using the next chaper button

Well it is possible to uhhhh “skip” that js code but ill not mention how it work here cuz i dont want to get banned, but i can promise to you that i wont do anything bad, i just “skip” the js for post import and not doing anything else

Even inferring that you know how (and intend to) circumvent the security system could get you in trouble.

While I personally believe you, that doesn’t prove anything. 99% of scammers will promise you that its not a scam…

3 Likes

thread isnt threading, rule isnt ruling…

Please refrain from discussions involving illegal actions (DDoS attacks) and violating platform rules (bypassing security system). Future posts/replies on the topic may be flagged and removed. Your account may be permanently suspended if you violate the terms of service.

7 Likes

Actively circumventing platform security measures is grounds for termination of your hosting. Especially if we find that you’re using it to overload our servers.

The PHP file upload size limit is 20 MB. Uploading 100 batches is a lot better than 5000 individual chapters, but it’s not exactly convenient.

Premium hosting doesn’t have file size limit though, so you should be able to import everything there (both using import plugins and with your Python script).

AFAIK WordPress articles are ordered by date. If multiple articles are created with the same date, then the ordering is not guaranteed. Any sensible import plugin would import in batch, not one by one, so these issues are bound to occur.

At the risk of digging a deeper rabbit hole: does WordPress perhaps have some way to specify a custom ordering for posts you could use to enforce the chapter ordering, instead of relying on the date sorting to keep the right ordering?

5 Likes

The best (and the easiest) I can imagine is to just follow how WordPress order the posts — just arrange them with (fake) publish times.

There’re definitely more ways but these will probably be more complex and is mostly guaranteed to have custom coding involved.

4 Likes

lol bros serious fr

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.