Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Announcing the Release of googlenewsdecoder Version 0.1.5! 🚀 #5

Open
SSujitX opened this issue Aug 15, 2024 · 0 comments
Open
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@SSujitX
Copy link
Owner

SSujitX commented Aug 15, 2024

We are excited to announce the first release of our Python package, googlenewsdecoder, now available on PyPI!

What is googlenewsdecoder?

googlenewsdecoder is a Python package designed to decode Google News URLs. It allows you to retrieve the original URLs behind the shortened or encoded links provided by Google News.

Features:

  1. Simple and Easy to Use: Easily decode Google News URLs with just a few lines of code.
  2. Two Decoding Methods: Offers two decoding strategies for maximum compatibility.
  3. A new Google News link is supported. Which has read instead of rss/articles - read

Installation:
You can install the package using pip:

pip install googlenewsdecoder --upgrade

Or, if you're feeling adventurous, install directly via GitHub:

pip install git+https://github.com/SSujitX/google-news-url-decoder@main

Usage Example:

from googlenewsdecoder import new_decoderv1

def main():

    interval_time = 5 # default interval is 1 sec, if not specified

    source_url = "https://news.google.com/read/CBMi2AFBVV95cUxPd1ZCc1loODVVNHpnbFFTVHFkTG94eWh1NWhTeE9yT1RyNTRXMVV2S1VIUFM3ZlVkVjl6UHh3RkJ0bXdaTVRlcHBjMWFWTkhvZWVuM3pBMEtEdlllRDBveGdIUm9GUnJ4ajd1YWR5cWs3VFA5V2dsZnY1RDZhVDdORHRSSE9EalF2TndWdlh4bkJOWU5UMTdIV2RCc285Q2p3MFA4WnpodUNqN1RNREMwa3d5T2ZHS0JlX0MySGZLc01kWDNtUEkzemtkbWhTZXdQTmdfU1JJaXY?hl=en-US&gl=US&ceid=US%3Aen"

    try:
        decoded_url = new_decoderv1(source_url, interval=interval_time)
        if decoded_url.get("status"):
            print("Decoded URL:", decoded_url["decoded_url"])
        else:
            print("Error:", decoded_url["message"])
    except Exception as e:
        print(f"Error occurred: {e}")

    # Output: decoded_urls - [{'status': True, 'decoded_url': 'https://healthdatamanagement.com/articles/empowering-the-quintuple-aim-embracing-an-essential-architecture/'}]

if __name__ == "__main__":
    main()

What’s Next?

We’re just getting started! Stay tuned for more updates and improvements. Contributions and feedback are welcome!

@SSujitX SSujitX pinned this issue Aug 16, 2024
@SSujitX SSujitX added the documentation Improvements or additions to documentation label Aug 16, 2024
@SSujitX SSujitX self-assigned this Aug 20, 2024
@SSujitX SSujitX changed the title 🎉 Announcing the Release of googlenewsdecoder Version 0.1.1! 🚀 🎉 Announcing the Release of googlenewsdecoder Version 0.1.4! 🚀 Aug 29, 2024
@SSujitX SSujitX changed the title 🎉 Announcing the Release of googlenewsdecoder Version 0.1.4! 🚀 🎉 Announcing the Release of googlenewsdecoder Version 0.1.5! 🚀 Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant