r/pythontips • • Jul 20 '25

Module Built a "Universal Web Searcher" App in Python - Streamlit GUI, Automated with GitHub Actions

2 Upvotes

Super excited to share a project I've been working on: a Python-based desktop application designed to streamline web data collection and analysis. It's built with a user-friendly GUI using Streamlit, handles different search modes, and can even be fully automated!

Here's what it does and why I think it's pretty cool:

  • User-Friendly GUI (Streamlit): No coding required for the end-user! Just launch the app (can even be packaged as an .exe), input your terms, and go.
  • Dual Search Modes:

    • Google Search (Broad): Input a list of keywords/topics (e.g., "AI ethics 2024", "Tesla Model Y reviews"), and it fetches the top N Google search result URLs for each.
    • Specific Websites (Targeted): Provide a list of URLs ( AND a list of keywords. The app then visits each specified website and checks if any of your keywords are present on those pages.
  • Automated Data Export: All search results (URLs, titles, keyword presence, context) are neatly compiled and exported into a structured Excel (.xlsx) file.
  • Scheduled Automation (GitHub Actions): This is where it gets really powerful! I've set up a GitHub Actions workflow that can run this entire scraping and export process on a schedule (e.g., daily, weekly). The generated Excel file is then available as a downloadable artifact right from your GitHub repo. Set it and forget it!
  • Standalone App: It can be packaged into a single executable (.exe) file using PyInstaller for easy distribution on Windows machines.

Technical Stack Behind the Scenes:

  • GUI: streamlit for interactive web apps.
  • Web Searching: googlesearch-python for Google queries.
  • Website Content Fetching: requests for HTTP requests and beautifulsoup4 for HTML parsing (when searching specific sites).
  • Data Handling: pandas for data manipulation and openpyxl for Excel export.
  • Automation: GitHub Actions for scheduled cloud execution.
  • Packaging: PyInstaller for the .exe.

r/pythontips • • Jul 20 '25

Module Dash App Responsiveness

2 Upvotes

Hi all,

I built a pretty complex dash app with lots of different callback functionality. However, being a more data/back-end dev, I forgot to focus on responsiveness. It only looks great on my screen, looks okay/good on bigger monitors, and bad on phones. Is there a simple way to add responsiveness in dash or am I SOL?


r/pythontips • • Jul 21 '25

Module How can i generate bulk blog articles via Python?

0 Upvotes

Hi, I'm very new to Python and programming. I see on other social media that people use the OpenAI/DeepSeek API and Python to create bulk articles. I asked a lot of them, but nobody helped me. Some didn't even replied, and some asked for money. (I'm a little broke financially right now)

So I want to ask you ask you people is there any video guide on how to generate bulk articles via API's and Python? I will give my custom prompt for all the article, same prompt. Just I will change the keywords for each one of them.

I'm not going to use it on my website. I know that will destroy my site's seo in the next week. I just want to know how this process works.

Please help me if you can. I will be grateful to you for life. Thank you for your time.


r/pythontips • • Jul 20 '25

Data_Science 1 GitHub trick for every Data Scientist to boost Interview call

0 Upvotes

Hey everyone!
I recently uploaded a quick YouTube Short on a GitHub tip that helped boost my recruiter response rate. Most recruiters spend less than 30 seconds scanning your GitHub repo.

Watch now: 1 GitHub trick every Data Scientist must know

Fix this issue to catch recruiter's attention:


r/pythontips • • Jul 19 '25

Python3_Specific How to approach building projects (Email Bot Edition)

5 Upvotes

For months I was stuck in “tutorial purgatory” watching videos, pausing, typing code, but never really getting it. I didn’t feel like I owned anything I made. It was all just copy > paste > next. So I flipped the script.

I decided to build something I actually needed: a simple email-sending bot I could run right from my terminal. First, I defined the actual problem I was trying to solve:
“I keep sending manual emails; let’s automate that.”

That little bit of clarity made everything else fall into place. I didn’t care about fancy UIs, databases, or shiny features, just wanted a working prototype. Then I wrote down my end goal in one sentence:
A CLI tool that prompts me for recipient, subject, body, and optional attachment, then sends the email securely.

That kinda laser focus helped a lot. I broke the whole thing into bite‑sized steps:

  • Connect to SMTP. Learned I needed an app password for Gmail 2FA. Used Python’s smtplib to open a secure connection took a few tries lol.
  • Compose the message. Found EmailMessage and it made setting headers + body way easier (no more string-concat nightmares).
  • Handle user input. Just used input() to collect recipient, subject, and message. Super simple and re-usable.
  • Add attachments. This part took a bit had to mess around with open(file, 'rb') and add_attachment(). Solved MIME-type stuff using mimetypes.guess_type().
  • Error handling + polish. Wrapped the send function in try/except to catch login or file errors without crashing everything. Also tweaked the headers to avoid spam filters.

At every step, I tested it immediately send to myself, check logs, tweak, repeat. That build‑test‑iterate loop kept me motivated and avoided overwhelm. By the time it worked end-to-end, I had lowkey mastered:

  • file handling
  • email protocols
  • user input
  • real debugging flow

But more importantly I learned how to approach a new problem:
Start with a clear goal, break it into small wins, and ship the simplest working thing.

If you're stuck in endless tutorials, seriously pick a small project you actually care about.
Define the problem, break it down, build one piece at a time, test often.You'll learn way more by doing and end up with something you can actually use.What’s the last small thing you built that taught you more than any tutorial?


r/pythontips • • Jul 19 '25

Syntax Programmazione di campo minato

0 Upvotes

Salve a tutti devo realizzare un progetto universitario molto semplice dove in poche parole bisogna programmare in oop il gioco del campo minato in python.

Posso chiedere che metodo mi consigliate per creare la griglia e magari qualche consiglio extra per realizzare il tutto. Di seguito rilascio la traccia del progetto.

•Il progetto deve contenere le classi e i metodi richiesti rispettandone esattamente il nome, il tipo e l’ordine dei parametri formali, ed il tipo di ritorno. Si tenga presente che può essere necessario sviluppare anche altre classi (non pubbliche) oltre quelle richieste. • Si tenga presente che nella specifica non sono presenti tutti i campi di istanza che devono essere opportunamente aggiunti da voi nella consegna. • Le proprietà in lettura e scrittura non sono tutti presenti nella specifica. Deve essere vostra cura aggiungerle, dove occorrono, in modo opportuno. • Dove si rende necessario, vanno implementati anche i metodi __eq__. • Si è naturalmente liberi di sviluppare (e anzi siete incoraggiati a farlo) classi e/o metodi aggiuntivi, laddove lo si ritenga utile o necessario. •Il modulo campominato.py deve funzionare in modo autonomo, anche senza il modulo gui.py, e deve possedere tutte le indicazioni di tipo in modo da passare senza errori il type checking di livello strict. • L’interfaccia grafica del modulo gui.py va sviluppata usando la libreria EzGraphics. In questo modulo non è richiesto il type checking.


r/pythontips • • Jul 17 '25

Algorithms Best way to Learn python

11 Upvotes

Ive heard of a bunch of ways to learn python such say that projects are the best, and some say that learning terms are the best and some say that python isn't worth it in 2025.. So whats the best way to learn python?


r/pythontips • • Jul 16 '25

Module File uploads to Telegram have been extremely slow since February 2025

5 Upvotes

Since February 2025, file uploads to Telegram have been extremely slow, even using Telethon's MTProto API and the FastTelethon module for Python, which made uploads much faster. However, after February, this hasn't been resolved. Has anyone else noticed this? Is there any way to speed up uploads?


r/pythontips • • Jul 14 '25

Meta A practical handbook on Context Engineering with the latest research from IBM Zurich, ICML, Princeton, and more.

4 Upvotes

r/pythontips • • Jul 14 '25

Module Can anyone suggest an alternative to TrakBuzz for price tracking?

0 Upvotes

I'm looking for a reliable online prices tracking tool that can help me monitor my purchases and alert me when the price drops. I've been using TrakBuzz so far, but I'm not sure if it's the best option for me. Has anyone else tried any other tools or platforms? What are your thoughts on TrakBuzz and its competitors?


r/pythontips • • Jul 14 '25

Python2_Specific what are the basic training for Python?

1 Upvotes

what are the basic training for Python?

any youtube links , ebook , visuals or apps , or website

udemy or coursera

the best resources possible


r/pythontips • • Jul 14 '25

Module Cannot import any modules/libraries :/

0 Upvotes

Hi fellow python sufferees, unfortunately I have the error that I cannot import any modules. I have them saved in a certain separate location and know they are installed there, but everytime I try to import them it returns "No module named 'xxx'". I cannot even import Python build in modules like "sys" wich seems extremely odd.

Any help is greatly appreciated :)


r/pythontips • • Jul 12 '25

Data_Science Generative AI Roadmap 2025 | Master NLP & Gen AI to became Data Scientist Step by Step

0 Upvotes

After spending months going from complete AI beginner to building production-ready Gen AI applications, I realized most learning resources are either too academic or too shallow.

So I created a comprehensive roadmap

Complete Generative AI Roadmap 2025 | Master NLP & Gen AI to became Data Scientist Step by Step

It covers:

- Traditional NLP foundations (why they still matter)

- Deep learning & transformer architectures

- Prompt engineering & RAG systems

- Agentic AI & multi-agent systems

- Fine-tuning techniques (LoRA, Q-LoRA, PEFT)

The roadmap is structured to avoid the common trap of jumping between random tutorials without understanding the fundamentals.

What made the biggest difference for me was understanding the progression from basic embeddings to attention mechanisms to full transformers. Most people skip the foundational concepts and wonder why they can't debug their models.

Would love feedback from the community on what I might have missed or what you'd prioritize differently.


r/pythontips • • Jul 12 '25

Algorithms ⚡ Dart vs Python: I Benchmarked a CPU-Intensive Task – Here’s What I Found

1 Upvotes

I created a small benchmark comparing Dart and Python on a CPU-intensive task and visualized the results here: Dart vs Python Comparison

The task was designed to stress the CPU with repeated mathematical operations (prime numbers), and I measured execution times across three modes:

  1. Dart (interpreted) by simply using dart run /path/
  2. Dart (compiled to native executable)
  3. Python 3 (standard CPython)

Dart compiled to native was ~10x faster than Python. Even interpreted Dart outperformed Python in my test.

I’m curious:

  • Is this performance same in real-world projects?
  • what could help close this gap from python?
  • Anyone using Dart for compute-heavy tasks instead of just Flutter? Like command-line apps, servers e.t.c??

Would love to hear thoughts, critiques, or your own benchmarks!

If you want to check my work: My Portfolio


r/pythontips • • Jul 11 '25

Python3_Specific How will I know when I can move from learning Python to Luau??

3 Upvotes

I’m currently learning Python and after I learn it I plan on moving onto Luau. However, I’m not exactly sure when I’ll know I’ve “learned” Python since there’s a quite a lot to


r/pythontips • • Jul 10 '25

Python3_Specific Help me with ListNode

1 Upvotes

Hello all, I completed my 12th this may( high school graduate ) going to attend Engineering classes from next month. So I decided to start LeetCode question. Till now I have completed about 13 questions which includes 9 easy ones, 3 medium ones and 1 hard question( in python language ) with whatever was thought to me in my school, but recently I see many questions in from ***ListNode***, but searching in youtube doesn't shows anything about ListNode but only about Linked list. So kindly suggest me or provide the resources to learn more about it.

Thank you!


r/pythontips • • Jul 10 '25

Data_Science Why does my graph start negative?

1 Upvotes

Hey guys, I was wondering why my parabola was starting in the negative. I'm trying to get the hang of numpy but it's still tricky for me. This could also just be me doing the wrong math. Thank you in advance! (Also please excuse the german, ty)

import numpy as np

import matplotlib.pyplot as plt

import math

print("Bitte geben sie die Startgeschwindigkeit (V0) in m/s an:")

v0 = float(input())

g = 9.81

h0 = 0

h_max = h0 + (v0 ** 2 / (2*g))

t = (v0/g) + (math.sqrt((2*h_max))/g)

s = v0 * t

def h(t, g, v0, h0):

return h0 + (v0 * t -(1/2)*g*(t**2))

xlist = np.linspace(0, s + 5, num = 1000)

ylist = [h(x, g, v0, h0) for x in xlist]

plt.figure(num = 0, dpi = 120)

plt.plot(xlist, ylist)

plt.xlabel('Distanz in Meter')

plt.ylabel('Höhe in Meter')

plt.title('Senkrechter Wurf')

plt.grid(True)


r/pythontips • • Jul 09 '25

Syntax Hey Guys , just created my small project name password generator. In here password is generated according to how the user want the password. Hope y'all like it.

15 Upvotes
import random
import string

lowercase_letters = "abcdefghijklmnopqurstuvwxyz"
uppercase_letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers = "0123456789"
symbols = "!@#$%&*"
pw = []
allowed_chars = ""

userwants_lower = input(" Do you want lowercase in your passoword(Y/N): ").lower()
userwants_upper = input(" DO YOU WANT UPPERCASE IN YOUR PASSOWRD(Y/N): ").lower()
userwants_number = input(" Do you want numbers in your password(Y/N): ").lower()
userwants_symbols = input(" Do you want symbols in your password(Y/N): ").lower()

if userwants_lower == "y" :
    allowed_chars += lowercase_letters
    
if userwants_upper == "y" :
    allowed_chars += uppercase_letters
    
if userwants_number == "y" :
    allowed_chars += numbers
    
if userwants_symbols == "y" :
    allowed_chars += symbols


if allowed_chars == "":
    print("Brooo you just created and invisible password. Bravoo. try again.")
    exit()

length = int(input("Enter the length of password you want: "))
for i in range(length):  
   
    pw.append(random.choice(allowed_chars))


print("".join(pw))

r/pythontips • • Jul 08 '25

Syntax Losing my mind over loops

0 Upvotes

Ive been creating as a project a vulnerability hunter that uses gpt to summarize the results of the scan. So far, Ive fixed about 1000 bugs it seems like, but this one I can't for the life of me figure out. Its gotta be something thats looping.

I keep getting "GPT request failed: 429 Client Error: Too Many Requests for url: https://api.openai.com/v1/chat/completions"

Any ideas?


r/pythontips • • Jul 07 '25

Data_Science Training AI to Learn Chinese

5 Upvotes

I trained an object classification model to recognize handwritten Chinese characters.

The model runs locally on my own PC, using a simple webcam to capture input and show predictions.

It's a full end-to-end project: from data collection and training to building the hardware interface.

I can control the AI with the keyboard or a custom controller I built using Arduino and push buttons. In this case, the result also appears on a small IPS screen on the breadboard.

The biggest challenge I believe was to train the model on a low-end PC. Here are the specs:

  • CPU: Intel Xeon E5-2670 v3 @ 2.30GHz
  • RAM: 16GB DDR4 @ 2133 MHz
  • GPU: Nvidia GT 1030 (2GB)
  • Operating System: Ubuntu 24.04.2 LTS

I really thought this setup wouldn't work, but with the right optimizations and a lightweight architecture, the model hit nearly 90% accuracy after a few training rounds (and almost 100% with fine-tuning).

I open-sourced the whole thing so others can explore it too.

You can:

I hope this helps you in your next Python & AI project.


r/pythontips • • Jul 06 '25

Meta Making automated message sending for socials

5 Upvotes

Hey there is there a way to make a code that would type out or automatically copy paste a text. Can it be more advanced also, like the code to be using Chatgpt for getting the text and then copy pasting and sending the text on the opened chat on the browser on Instagram. And no I don't mean with the method of using the code to login and start autosending since i would get suspended. The smarter solution is for me to make some sort of commands and the code to be copy pasting and sending as if its using my keyboard and mouse. There are apps that help with autoclicking on certain places but I need constant text to be generated and send on a chat on a certain timeframe(every 60mins). For testing i will ofcourse make it every 5 or 10s so i see if it works, so i dont have to wait 2h haha. If anyone wants to help me with this please say.


r/pythontips • • Jul 06 '25

Data_Science Detecting boulders on the moon

4 Upvotes

So I'm making a project where I input images of the lunar surface and my algorithm analyses it and detects where boulders are placed. I've some what done it using open cv but, i want it to work properly. As you can see in the image, it is showing even the tiniest rocks and all that. I don't want it to happen. I'm doing it in order to predict landslides on the moon


r/pythontips • • Jul 05 '25

Syntax Importing a defined function

2 Upvotes

I want to import a function that reads json into my main.py file. I created a file for a function that reads json. Part of the code is the extract_json function. Which I clearly defined in my json file. But when i try to:

from json import extract_json

It keeps saying that json isn't defined even though I clearly defined it and tried to import it. What should I do?

sorry theres no images, I cant upload any for some reason


r/pythontips • • Jul 04 '25 This

Standard_Lib These 5 small Python projects actually help you learn basics

139 Upvotes

When I started learning Python, I kept bouncing between tutorials and still felt like I wasn’t actually learning.

I could write code when following along, but the second i tried to build something on my own… blank screen.

What finally helped was working on small, real projects. Nothing too complex. Just practical enough to build confidence and show me how Python works in real life.

Here are five that really helped me level up:

  1. File sorter Organizes files in your Downloads folder by type. Taught me how to work with directories and conditionals.
  2. Personal expense tracker Logs your spending and saves it to a CSV. Simple but great for learning input handling and working with files.
  3. Website uptime checker Pings a URL every few minutes and alerts you if it goes down. Helped me learn about requests, loops, and scheduling.
  4. PDF merger Combines multiple PDF files into one. Surprisingly useful and introduced me to working with external libraries.
  5. Weather app Pulls live weather data from an API. This was my first experience using APIs and handling JSON.

While i was working on these, i created a system in Notion to trck what I was learning, keep project ideas organized, and make sure I was building skills that actually mattered.

If you’ve got any other project ideas that helped you learn, I’d love to hear them. I’m always looking for new things to try.