Maya Akim Profile picture
Jun 11 11 tweets 6 min read Twitter logo Read on Twitter
Just 3 months into learning Python, I've built my second functioning app.

Thanks to my favorite tutor - @OpenAI's GPT4 and the best Python framework @LangChainAI

This time I created a tool that I dreamt of for a long time, a fully customizable, personalized newsletter 🗞️
The tool - "AutoGNT", lets you type a keyword, and within a minute, you'll receive an email with summarized news articles related to your input.

After all, we should control our news consumption, not the other way around. Image
First, I asked GPT4 to write a script that calls @serp_api and returns a list of URLs based on the user’s input.

It performed well, but there was a problem - duplicate news topics!

But that's how the media works, every news publisher will write their own version of the news. ImageImage
So, I used @scikit_learn (helped by chatGPT) to group similar articles and discard duplicate topics.

By comparing article content, the script would reject one and keep the other if they were too alike.
Next, I used newspaper3K to scrape the content of the news article.

It's incredibly beginner-friendly and I didn't need to rely on GPT4 due to its clear documentation. ImageImage
Then, I integrated LangChain for:

1. Summarizing articles
2. Ensuring summarized text < 4000 tokens using text splitters
3. Generating catchy titles with prompt templates.

It’s a new tool, GPT doesn't know it so I wrote 100% of the code on my own and it was a good practice. ImageImage
The final step was setting up an email service with @Mail_Gun to send the content as an email.

With the MailGun docs, this script was easy to implement even as a total beginner. ImageImageImage
If you'd like to learn how to recreate this tool, you can check out my latest video ⤵️

Or check out the code here ⤵️

github.com/majacinka/auto…
And lastly, I used @streamlit for frontend, testing, and hosting

…inka-autognt-app-cruudz.streamlit.app
I'm sharing my process to encourage more people, even beginners, to learn programming and create tools that currently don't exist.

ChatGPT is making learning programming so much less intimidating so let's seize this opportunity 🍀

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Maya Akim

Maya Akim Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Maya_Akim

May 24
Just 2 months ago, I knew nothing about Python.

But a few days ago I developed my first fully functional AI app thanks to @LangChainAI, GPT4, and @streamlit.

In just a few days of 'working' with GPT4, I've learned more about programming than I did in the past 2 years. Image
First I asked GPT to write a script in python that scrapes Youtube and searches for the most viewed videos based on a specific keyword. ImageImage
I tested the script, and it worked pretty well so I asked GPT to integrate streamlit for the frontend ImageImage
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(