How to Scrape all BlogSpot Blog Posts

Hello Tech Lovers, I hope you are doing well. Do you want to copy all the posts from your favorite blog and post them on your own blog?

Fetch All BlogPosts from Blogger Blog

Congratulations! Today I am going to show you how you can get all the posts on your friend’s blog on your computer, and then you can upload all the posts on your own blog.

Must Read: How to add a Facebook-Like Button to Blogger?

How to copy all posts from the blog?

I am going to provide you with the Python Code, You can quickly execute the python script on your computer and scrape all posts from your brother’s blog and publish them on your blog.

Python Code to Scrape all Posts from the Blog:

import requests

for i in range(1, 1325, 25):

   URL = "https://www.1freetoreads.com/feeds/posts/default?start-index={0}&max-results=25".format(i)

   filename = "feed(%s).xml" % i

   response = requests.get(URL)

   with open(filename, 'wb') as file:

    file.write(response.content)

How to copy and save all blog posts from the Blog?

With the above python code, you can get all posts from our blog and posts on your own blog. But remember that you should be permitted to use other websites’ content.

As all our content is protected, you are not allowed to copy our content. This code is for educational purposes only.

Must Read: 3 Customized Stylish Comment Box For Blogger

How to save scraped blog posts in the file?

After executing you will get the number of files for all posts on the blog, each file will contain 25 blog posts. You can import it into your own blog. Just go to settings and click import and upload your files.

I hope you like this Blogger tutorial. Please let us know in the comment section. With this python script, you can get all your blogger posts on your computer.

Leave a Reply