🎯 Tech Learning Journey - Day 03: Web APIs & Requests - Talk to the Internet! Web APIs are how your Python code talks to websites and online services. You send a request, just like asking for information, and the API sends back data that you can use in your application. import requests # Get data from a public API response = requests.get\('https://lnkd.in/gUpgfHqa) data = response.json\(\) print\(f"User: \{data\['login'\]\}"\) print\(f"Repos: \{data\['public\_repos'\]\}"\) Where I use this: Fetching weather updates, getting user data from databases, and integrating third-party services into my apps. #Python #Coding #Programming #WebAPI
Python Web APIs & Requests Tutorial
More Relevant Posts
-
Day 42 of #60DaysOfMiniProjects Today I built a Time Capsule Message App using Python Not just another project… This one lets you send a message to your future self Some thoughts aren’t meant for now… they’re meant for the version of you that’s still growing. What this system does: • Write a message to your future self • Set a time delay (in seconds) • Stores messages in a file • Reveals messages only when time is reached • Keeps messages “locked” until the right moment Why this project matters: • Encourages self-reflection • Helps track personal growth • Feels like a digital memory capsule • Shows how simple logic can create meaningful apps Concepts used: • Python basics • File Handling (Read/Write) • Date & Time module • Conditional logic • Simple CLI interaction From storing messages → revealing emotions at the right time. Next improvements: • Auto-delete after reading • Add password protection • GUI version (Tkinter) • Notification-based reveal • Store in database (SQLite) Building consistently. Learning daily. Improving step by step. 🚀 #Python #MiniProjects #BuildInPublic #CodingJourney #DeveloperLife #LearningInPublic #60DaysOfCode
To view or add a comment, sign in
-
I just wrapped up a Student Result Management System built with Python, and I’m excited about the progress. What started as a simple logic exercise quickly turned into a functional tool. Key features I implemented: Data Structures: Used Dictionaries to efficiently map student names to their scores and grades. Control Flow: Applied loops and conditionals to automate grading and result processing. File Handling (The big win!): Integrated .txt file operations so that student data is saved and retrieved even after the program closes. Moving from volatile memory to File Handling felt like a major milestone—it’s the difference between a temporary script and a persistent application. 📂 I’m currently focusing on strengthening my backend fundamentals and building projects that solve small, real-world problems. Next up: Exploring how to structure this more efficiently using Functions or maybe even a CSV format for better data portability! Any tips from the dev community on optimizing file storage in Python? Let me know below! 👇 #Python #CodingJourney #BackendDevelopment #Programming #StudentProject #LearningToCode
To view or add a comment, sign in
-
Mutable default arguments — the bug that's been in your code for years Most Python developers have shipped this bug. They just don't know it yet. def add_item(item, items=[]): items.append(item) return items Looks innocent. Isn't. Most people think the empty list is created fresh on every call. It's not. The default value is evaluated exactly once — when the function is defined. The same list object is reused on every call where you don't pass items explicitly. Call it three times without arguments and you don't get three lists with one item each. You get one list with three items, growing across every call you forget to make. In production this shows up as: a function that caches results between requests when you didn't ask it to. State leaking across users. Tests that pass alone and fail in a suite. The fix is one line: def add_item(item, items=None): if items is None: items = [] items.append(item) Mutable defaults are not a feature. They're a sharp edge. Sentinel-and-rebuild is the only safe pattern. #PythonInternals #Python #DataEngineering #SoftwareEngineering #Developer #PythonDeveloper #Backend #CodingInterview #Developers #Programming #Learning #PythonTips
To view or add a comment, sign in
-
🚀 Day 11 of #111DaysOfLearningForChange – Code for Change Built a GitHub Trending CLI Tool to discover popular repositories 🌐💻 📌 What I learned today: • Advanced API usage with query parameters • Building flexible CLI tools using argparse • Filtering data based on time (day, week, month, year) • Handling API responses and errors effectively 🛠️ What I built: A CLI tool that: • Fetches trending GitHub repositories 📈 • Filters results by duration (day/week/month/year) • Displays repo details (name, stars, language, link) ✨ Example usage: python trending.py --duration week --limit 5 ✨ Key takeaway: Combining APIs with CLI tools can create powerful and practical developer utilities ⚡ Challenge faced: Constructing correct API queries and handling different response cases #111DaysOfLearningForChange #CodeForChange #Python #CLI #API #GitHub #LearningInPublic https://lnkd.in/gNBy3eiN
To view or add a comment, sign in
-
-
MarkItDown by Microsoft quickly became one of the most talked-about document conversion libraries in the Python ecosystem. The reason is simple: it just works. PDF, DOCX, PPTX, XLSX, HTML, images - all converted to clean Markdown, locally, with no external API calls. For RAG pipelines, that matters more than people realize. The quality of your conversions directly shapes the quality of your retrieval. Use MarkItDownConverter to convert virtually any file format into Haystack Document objects with Markdown content - standalone or wired directly into your indexing pipelines. Everything runs locally, so your data stays yours. 🐍 pip install markitdown-haystack 🔗 Documentation: https://lnkd.in/gJfaVi8H
To view or add a comment, sign in
-
-
🚀 Just published a new tutorial on building a Contact Form for SMEs using Flask! In this guide, I walk through how to create a fully functional contact form using Flask-WTF for form handling and validation, along with Flask-CKEditor to enable rich text input. These tools make it easier to build dynamic, user-friendly web forms in Python applications. (PyPI) You’ll also learn how to deploy your Flask app on PythonAnywhere, making your project accessible online with minimal setup. 🔗 Read the full tutorial here: https://lnkd.in/gCBF3Bsh This tutorial is especially useful for: Developers building SME websites Anyone learning Flask form handling Beginners exploring real-world deployment Whether you're already working with Flask or planning to build web apps in Python, this is a practical, hands-on guide to get you started. #Python #Flask #WebDevelopment #SME #Programming #SoftwareDevelopment #LearnToCode
To view or add a comment, sign in
-
Built my first Python API using FastAPI! Coming from a MERN background, I decided to explore Python backend development—and it’s been an eye-opening experience. What I built: A simple REST API with GET & POST endpoints Request validation using Pydantic models Auto-generated API docs (Swagger UI) Key Learnings: How FastAPI handles routing (similar to Express but cleaner) Request body validation without extra libraries Importance of virtual environments (and debugging them the hard way) Running production-ready APIs using Uvicorn One thing that really stood out: FastAPI feels like TypeScript + Express, but with built-in validation and performance advantages. Example: Created a POST /user endpoint that validates incoming data using a schema and returns structured responses. GitHub Repo: https://lnkd.in/gF4FFR2u Would love feedback from the community #Python #FastAPI #BackendDevelopment #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
Day 7/10 🚀 This is where your code grows up. Modules & Packages — the foundation of every scalable Python project. Without them? Spaghetti code, repetition, no structure. With them? Clean, reusable, production-ready code. 📋 What I covered today: 01 → Modules & package structure 02 → Creating & importing .py files 03 → init.py & sub-packages 04 → Import styles — import, from, alias 05 → Relative vs absolute imports 06 → Standard library — os, json, datetime, re 07 → Third-party packages — pip, numpy, pandas 08 → Virtual environments & requirements.txt 09 → Mini Project — Config Loader Package Built a small config package with loader & validator modules — a real-world pattern used in production apps. Day 1 ✅ Day 2 ✅ Day 3 ✅ Day 4 ✅ Day 5 ✅ Day 6 ✅ Day 7 ✅ 3 more to go. Drop a 📦 if you’ve ever put everything in one giant .py file 😄 #Python #Modules #Packages #DataEngineering #LearningInPublic #CleanCode #10DaysOfPython #SoftwareEngineering
To view or add a comment, sign in
-
So, I solved one of my longtime headaches with GitHub today. I created a small utility app that runs locally on your system to help in the manual creation of repositories. It's a straight python app that you just add the code into python.org or your CMD It's simple and straightforward; just hit the button that says open folder or zip and then you choose your file you want to make into a new repository. The app identifies each file and puts the name in one copy paste field and the contents in the second copy paste field and you just manually go back and forth. Free for everyone and anyone to use as you see fit. I just hope it helps the way that it helps me. Have a good evening from Archer Chain Analytics. https://lnkd.in/gGKjR54g
To view or add a comment, sign in
-
Day 13 of my Python Full Stack journey. ✅ Today's topic: Scope — where your variables live and die. This one concept explains so many confusing bugs. Here's what I typed today: # Local scope — only lives inside the function def my_function(): message = "I only exist here" print(message) # works ✅ my_function() # print(message) # ❌ Error! message doesn't exist out here # Global scope — lives everywhere name = "Punith" def greet(): print(f"Hello {name}") # works ✅ greet() # Modifying a global variable inside a function count = 0 def increment(): global count count += 1 increment() print(count) # 1 ✅ Biggest lesson today: Avoid using 'global' too much. If every function is touching the same variable — that's a sign your code needs better structure. This is exactly why functions should take inputs and return outputs — not secretly modify things from outside. Small concept. But this is how senior developers think. #PythonFullStack #Day13 #BuildingInPublic #100DaysOfCode #Bangalore
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development