Skip to content

Shoaibsi/AutoNewsletter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AutoNewsletter AutoNewsletter is a script that generates a newsletter based on a user query. It scrapes the latest news articles from Google search results, applies text summarization techniques, and sends the summarized articles as a newsletter via email.

Features Scrapes Google search results for the latest articles related to a user query. Filters out similar articles to ensure uniqueness. Splits the article text into chunks and applies text summarization techniques. Generates clickbaity titles for the summarized text. Sends the newsletter via email using the MailGun service. Dependencies The following dependencies are required to run the AutoNewsletter script:

Streamlit Requests JSON NumPy Newspaper3K Langchain Scikit-learn You can install the dependencies by running the following command:

Copy code pip install -r requirements.txt Usage Clone the repository: bash Copy code git clone https://github.com/your-username/AutoNewsletter.git Install the required dependencies using the command mentioned above.

Obtain the necessary API keys:

SerpAPI Key: Visit the SerpAPI website to obtain an API key. OpenAI API Key: Visit the OpenAI website to obtain an API key. MailGun API Key: Create an account on MailGun and obtain an API key. Ensure that you have a valid sending email and a receiving email as authorized recipients. Replace the placeholders in the code with your API keys and email information:

In the main function, update the following variables: serpapi_key with your SerpAPI key. openai_api_key with your OpenAI API key. user_query with the desired keyword for the newsletter. recipient_mail with the recipient's email address. sending_mail with the sending email address. mailgun_domain with your MailGun domain. mailgun_api with your MailGun API key. Run the script:

arduino Copy code streamlit run main.py Access the Streamlit application in your web browser. Enter the required information and click the "Submit" button to generate and send the newsletter. License This project is licensed under the MIT License.

Disclaimer The AutoNewsletter script is provided as-is without any warranty. Use it at your own risk. The developers are not responsible for any misuse or damage caused by the script.

Contributing Contributions to this project are welcome. Feel free to open issues and submit pull requests to contribute to the development of the AutoNewsletter script.

If you have any suggestions, bug reports, or feature requests, please open an issue on GitHub.

Acknowledgments This script is based on the work of various open-source libraries and services. We would like to acknowledge and express our gratitude to the developers of the following projects:

Streamlit SerpAPI Newspaper3K Langchain Scikit-learn MailGun OpenAI Contact For any inquiries or questions, please contact [your-email@example.com](mailto:your

About

script that integrates various libraries and services to scrape news articles, summarize them, and send a newsletter via email based on a user query.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages