Skip to main content

GblogWhisperer

GblogWhisperer is the low-key G.O.A.T Python package for leveling up your Google Blogger game. Whether you’re tryna vibe-check your blog with instant posts, keep it demure with scheduled drops, or delete those cheugy duplicates, this package slaps.


Features

  • Instant Posts: When you gotta post now, this is bussin’.
  • Scheduled Drops: Flex with planned posts that hit at the perfect time.
  • Delete Like a Pro: Handle duplicate titles without a vibe-killer moment.

Requirements

  • Python: 3.6 or higher (keep it fresh, no cheugy versions).
  • Google Blogger Access: If you know, you know.
  • OAuth Credentials: Get that Client ID JSON file for the rizz with Google.

Installation

From PyPI

pip install gblog-whisperer  

From Source

  1. Clone the repo (only if you don't already have the source):

    git clone https://github.com/aryanraw/gblog_whisperer.git
    cd gblog_whisperer
    
  2. Install the package and dependencies like a boss:

    pip install .  
    
  3. Make sure you’re locked in with all the extras:

    pip install -r requirements.txt  
    

Usage

Authenticate First

First-time vibe check: the package will ask you to log in. After that, you’re golden with token.json—just smooth sailing for all your future runs.

Import the Tools

from GblogWhisperer import post_instantly, schedule_post, delete_post  

Instant Post

post_instantly(  
    blog_id="YOUR_BLOG_ID",  
    client_secret_file="path/to/client_secret.json",  
    title="Your Blog Title",  
    content="Your Blog Content"  
)  

Schedule the Drop

schedule_post(  
    blog_id="YOUR_BLOG_ID",  
    client_secret_file="path/to/client_secret.json",  
    title="Your Scheduled Blog Title",  
    content="Your Blog Content",  
    publish_time="DD/MM/YYYY-HH:MM:SS",  # Example: 25/12/2024-15:30:00  
    utc_offset="+05:30"  # Make timezone moves effortlessly  
)  

Delete the Cheugy Posts

delete_post(  
    blog_id="YOUR_BLOG_ID",  
    client_secret_file="path/to/client_secret.json",  
    title="Title of the Blog Post to Delete"  
)  

If there are duplicate titles, you’ll get a vibe-check prompt to choose which one gets axed.


Pro Tip: Use time.sleep

Don’t be that person spamming the Blogger API. Stay mindful with a short breather between calls using time.sleep(). It’s low-key essential for avoiding rate-limit drama.

import time  

# Instant drop  
post_instantly(blog_id, client_secret_file, "Title 1", "Content 1")  
time.sleep(2)  # Low-key chill for 2 seconds  

# Scheduled vibe  
schedule_post(blog_id, client_secret_file, "Title 2", "Content 2", "10/12/2024-15:30:00", "+05:30")  
time.sleep(2)  

# Delete that cheugy post  
delete_post(blog_id, client_secret_file, "Title 1")  

File Vibes

GblogWhisperer/  
├── GblogWhisperer/  
│   ├── __init__.py  
│   ├── authenticate.py  
│   ├── post_instantly.py  
│   ├── schedule_post.py  
│   ├── delete_post.py  
├── setup.py  
├── requirements.txt  
└── README.md  

Dependencies

  • google-auth-oauthlib: For keeping your login game strong.
  • google-api-python-client: Talks to Blogger so you don’t have to.

Setting Up Your Rizz with OAuth

  1. Slide into the Google Cloud Console.
  2. Make a new project or pick one you’re already vibing with.
  3. Turn on the Blogger API for your project.
  4. Set up OAuth creds for a Desktop App—no cap.
  5. Download the JSON file, name it client_secret.json, and stash it somewhere safe.

Notes

  • Timezone Rizz: schedule_post flexes UTC offsets like +05:30 or -08:00 to keep your drops sharp.
  • No Login Loops: With token.json, you’re set after the first vibe check.
  • Rate Limit Respect: Sprinkle time.sleep() to keep things mindful.

License

This project is licensed under MIT, which slaps. Feel free to do your thing.


Contributing

Got ideas? Found a bug? Fork it, fix it, and slide us a pull request. Collaboration is low-key bussin’.


Release files for gblog-whisperer 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gblog-whisperer 1.0.4
File Size Uploaded
gblog_whisperer-1.0.4.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gblog-whisperer 1.0.4
File Interpreter ABI Platform
gblog_whisperer-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / gblog_whisperer-1.0.4.tar.gz

Download URL gblog_whisperer-1.0.4.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
377885995e55ff68cba3c39b1425f30160b1ae1395c297984e78c00c1c0ef390
BLAKE2b-256 checksum
How to use checksums
928ca5467870ffe346b5a083ff07c8394c0772e22e725195a461f449cab04aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.0

Release files / gblog_whisperer-1.0.4-py3-none-any.whl

Download URL gblog_whisperer-1.0.4-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0812eada3174ebfd7aa3161790c29f5c065cd70cf534ee5cc8e10312efb495c5
BLAKE2b-256 checksum
How to use checksums
c6ee54cfd6873ab564fcee9b55859973f89745af88d747abd90a62337339b4c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page