Github Top Repositories
12.9K subscribers
379 photos
57 videos
9 files
1.33K links
Top GitHub repositories in one place ๐Ÿš€
Explore the best projects in programming, AI, data science, and more.
Download Telegram
Topic: Python Script to Convert a Shared ChatGPT Link to PDF โ€“ Step-by-Step Guide

---

### Objective

In this lesson, weโ€™ll build a Python script that:

โ€ข Takes a ChatGPT share link (e.g., https://chat.openai.com/share/abc123)
โ€ข Downloads the HTML content of the chat
โ€ข Converts it to a PDF file using pdfkit and wkhtmltopdf

This is useful for archiving, sharing, or printing ChatGPT conversations in a clean format.

---

### 1. Prerequisites

Before starting, you need the following libraries and tools:

#### โ€ข Install pdfkit and requests

pip install pdfkit requests


#### โ€ข Install wkhtmltopdf

Download from:
[https://wkhtmltopdf.org/downloads.html](https://wkhtmltopdf.org/downloads.html)

Make sure to add the path of the installed binary to your system PATH.

---

### 2. Python Script: Convert Shared ChatGPT URL to PDF

import pdfkit
import requests
import os

# Define output filename
output_file = "chatgpt_conversation.pdf"

# ChatGPT shared URL (user input)
chat_url = input("Enter the ChatGPT share URL: ").strip()

# Verify the URL format
if not chat_url.startswith("https://chat.openai.com/share/"):
print("Invalid URL. Must start with https://chat.openai.com/share/")
exit()

try:
# Download HTML content
response = requests.get(chat_url)
if response.status_code != 200:
raise Exception(f"Failed to load the chat: {response.status_code}")

html_content = response.text

# Save HTML to temporary file
with open("temp_chat.html", "w", encoding="utf-8") as f:
f.write(html_content)

# Convert HTML to PDF
pdfkit.from_file("temp_chat.html", output_file)

print(f"\nโœ… PDF saved as: {output_file}")

# Optional: remove temp file
os.remove("temp_chat.html")

except Exception as e:
print(f"โŒ Error: {e}")


---

### 3. Notes

โ€ข This approach works only if the shared page is publicly accessible (which ChatGPT share links are).
โ€ข The PDF output will contain the web page version, including theme and layout.
โ€ข You can customize the PDF output using pdfkit options (like page size, margins, etc.).

---

### 4. Optional Enhancements

โ€ข Add GUI with Tkinter
โ€ข Accept multiple URLs
โ€ข Add PDF metadata (title, author, etc.)
โ€ข Add support for offline rendering using BeautifulSoup to clean content

---

### Exercise

โ€ข Try converting multiple ChatGPT share links to PDF
โ€ข Customize the styling with your own CSS
โ€ข Add a timestamp or watermark to the PDF

---

#Python #ChatGPT #PDF #WebScraping #Automation #pdfkit #tkinter

https://t.me/CodeProgrammer โœ…
Please open Telegram to view this post
VIEW IN TELEGRAM
โค8
๐Ÿ”ฅ Trending Repository: FreeLearningResourcesForSoftwareTesters

๐Ÿ“ Description: A New Project to create a set of links to free Online Learning Resources for New and Experienced Software Testers.

๐Ÿ”— Repository URL: https://github.com/PaulWaltersDev/FreeLearningResourcesForSoftwareTesters

๐Ÿ“– Readme: https://github.com/PaulWaltersDev/FreeLearningResourcesForSoftwareTesters#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 1.1K stars
๐Ÿ‘€ Watchers: 135
๐Ÿด Forks: 252 forks

๐Ÿ’ป Programming Languages: Not available

๐Ÿท๏ธ Related Topics:
#testing #automation #software #exploratory


==================================
๐Ÿง  By: https://t.me/DataScienceN
๐Ÿ”ฅ Trending Repository: bytebot

๐Ÿ“ Description: Bytebot is a self-hosted AI desktop agent that automates computer tasks through natural language commands, operating within a containerized Linux desktop environment.

๐Ÿ”— Repository URL: https://github.com/bytebot-ai/bytebot

๐ŸŒ Website: https://www.bytebot.ai/

๐Ÿ“– Readme: https://github.com/bytebot-ai/bytebot#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 3.3K stars
๐Ÿ‘€ Watchers: 20
๐Ÿด Forks: 271 forks

๐Ÿ’ป Programming Languages: TypeScript - Dockerfile - CSS - Smarty - PLpgSQL - Scheme - JavaScript

๐Ÿท๏ธ Related Topics:
#agent #docker #automation #ai #mcp #desktop #gemini #openai #desktop_automation #agents #cua #ai_agents #ai_tools #llm #anthropic #agentic_ai #computer_use #computer_use_agent #bytebot


==================================
๐Ÿง  By: https://t.me/DataScienceM
โค1
๐Ÿ”ฅ Trending Repository: kestra

๐Ÿ“ Description: โšก Universal Workflow Orchestration Platform โ€” Code in any language, run anywhere. 800+ plugins for data, infrastructure, and AI automation.

๐Ÿ”— Repository URL: https://github.com/kestra-io/kestra

๐ŸŒ Website: https://kestra.io

๐Ÿ“– Readme: https://github.com/kestra-io/kestra#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 20.5K stars
๐Ÿ‘€ Watchers: 139
๐Ÿด Forks: 1.7K forks

๐Ÿ’ป Programming Languages: Java - Vue - TypeScript - JavaScript - SCSS - Shell

๐Ÿท๏ธ Related Topics:
#java #workflow #devops #automation #pipeline #orchestration #infrastructure_as_code #high_availability #low_code #pipeline_as_code #lowcode #data_orchestration


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: airflow

๐Ÿ“ Description: Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

๐Ÿ”— Repository URL: https://github.com/apache/airflow

๐ŸŒ Website: https://airflow.apache.org/

๐Ÿ“– Readme: https://github.com/apache/airflow#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 41.9K stars
๐Ÿ‘€ Watchers: 764
๐Ÿด Forks: 15.5K forks

๐Ÿ’ป Programming Languages: Python - TypeScript - JavaScript - Shell - Dockerfile - Jinja

๐Ÿท๏ธ Related Topics:
#python #workflow #data_science #machine_learning #airflow #automation #etl #workflow_engine #scheduler #apache #orchestration #data_engineering #data_integration #elt #data_pipelines #dag #apache_airflow #mlops #workflow_orchestration #data_orchestrator


==================================
๐Ÿง  By: https://t.me/DataScienceM
โค1
๐Ÿ”ฅ Trending Repository: nanobrowser

๐Ÿ“ Description: Open-Source Chrome extension for AI-powered web automation. Run multi-agent workflows using your own LLM API key. Alternative to OpenAI Operator.

๐Ÿ”— Repository URL: https://github.com/nanobrowser/nanobrowser

๐ŸŒ Website: https://nanobrowser.ai

๐Ÿ“– Readme: https://github.com/nanobrowser/nanobrowser#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 9.2K stars
๐Ÿ‘€ Watchers: 52
๐Ÿด Forks: 942 forks

๐Ÿ’ป Programming Languages: TypeScript - JavaScript

๐Ÿท๏ธ Related Topics:
#chrome_extension #agent #automation #opensource #extension #browser #ai #comet #nano #multi_agent #dia #browser_automation #ai_agents #web_automation #mariner #n8n #manus #playwright #ai_tools #browser_use


==================================
๐Ÿง  By: https://t.me/DataScienceM
โค1
๐Ÿ”ฅ Trending Repository: MoneyPrinterTurbo

๐Ÿ“ Description: ๅˆฉ็”จAIๅคงๆจกๅž‹๏ผŒไธ€้”ฎ็”Ÿๆˆ้ซ˜ๆธ…็Ÿญ่ง†้ข‘ Generate short videos with one click using AI LLM.

๐Ÿ”— Repository URL: https://github.com/harry0703/MoneyPrinterTurbo

๐Ÿ“– Readme: https://github.com/harry0703/MoneyPrinterTurbo#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 40.2K stars
๐Ÿ‘€ Watchers: 300
๐Ÿด Forks: 5.9K forks

๐Ÿ’ป Programming Languages: Python

๐Ÿท๏ธ Related Topics:
#python #automation #ai #moviepy #shortvideo #tiktok #chatgpt


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: dify

๐Ÿ“ Description: Production-ready platform for agentic workflow development.

๐Ÿ”— Repository URL: https://github.com/langgenius/dify

๐ŸŒ Website: https://dify.ai

๐Ÿ“– Readme: https://github.com/langgenius/dify#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 115K stars
๐Ÿ‘€ Watchers: 692
๐Ÿด Forks: 17.8K forks

๐Ÿ’ป Programming Languages: TypeScript - Python - JavaScript - MDX - CSS - HTML

๐Ÿท๏ธ Related Topics:
#python #agent #workflow #automation #ai #mcp #nextjs #orchestration #gemini #openai #gpt #low_code #no_code #rag #gpt_4 #llm #genai #agentic_framework #agentic_workflow #agentic_ai


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: awesome-n8n-templates

๐Ÿ“ Description: Supercharge your workflow automation with this curated collection of n8n templates! Instantly connect your favorite apps-like Gmail, Telegram, Google Drive, Slack, and more-with ready-to-use, AI-powered automations. Save time, boost productivity, and unlock the true potential of n8n in just a few clicks.

๐Ÿ”— Repository URL: https://github.com/enescingoz/awesome-n8n-templates

๐ŸŒ Website: https://n8n.partnerlinks.io/h1pwwf5m4toe

๐Ÿ“– Readme: https://github.com/enescingoz/awesome-n8n-templates#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 12.8K stars
๐Ÿ‘€ Watchers: 218
๐Ÿด Forks: 3.8K forks

๐Ÿ’ป Programming Languages: Not available

๐Ÿท๏ธ Related Topics:
#automation #integration #workflow_automation #n8n #no_code_ai #no_code_automation #n8n_automation #automation_templates #n8n_template


==================================
๐Ÿง  By: https://t.me/DataScienceM
โค1
๐Ÿ”ฅ Trending Repository: RD-Agent

๐Ÿ“ Description: Research and development (R&D) is crucial for the enhancement of industrial productivity, especially in the AI era, where the core aspects of R&D are mainly focused on data and models. We are committed to automating these high-value generic R&D processes through R&D-Agent, which lets AI drive data-driven AI. ๐Ÿ”—https://aka.ms/RD-Agent-Tech-Report

๐Ÿ”— Repository URL: https://github.com/microsoft/RD-Agent

๐ŸŒ Website: https://rdagent.azurewebsites.net/

๐Ÿ“– Readme: https://github.com/microsoft/RD-Agent#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 8.2K stars
๐Ÿ‘€ Watchers: 59
๐Ÿด Forks: 872 forks

๐Ÿ’ป Programming Languages: Python - Jupyter Notebook

๐Ÿท๏ธ Related Topics:
#agent #data_science #development #data_mining #automation #research #ai #llm


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: skyvern

๐Ÿ“ Description: Automate browser-based workflows with LLMs and Computer Vision

๐Ÿ”— Repository URL: https://github.com/Skyvern-AI/skyvern

๐ŸŒ Website: https://www.skyvern.com

๐Ÿ“– Readme: https://github.com/Skyvern-AI/skyvern#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 14.7K stars
๐Ÿ‘€ Watchers: 84
๐Ÿด Forks: 1.3K forks

๐Ÿ’ป Programming Languages: Python - TypeScript - MDX - Jinja - JavaScript - Shell

๐Ÿท๏ธ Related Topics:
#python #api #workflow #automation #browser #computer #vision #gpt #browser_automation #rpa #playwright #llm


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: cursor-free-vip

๐Ÿ“ Description: [Support 0.49.x]๏ผˆReset Cursor AI MachineID & Bypass Higher Token Limit๏ผ‰ Cursor Ai ๏ผŒ่‡ชๅŠจ้‡็ฝฎๆœบๅ™จID ๏ผŒ ๅ…่ดนๅ‡็บงไฝฟ็”จProๅŠŸ่ƒฝ: You've reached your trial request limit. / Too many free trial accounts used on this machine. Please upgrade to pro. We have this limit in place to prevent abuse. Please let us know if you believe this is a mistake.

๐Ÿ”— Repository URL: https://github.com/yeongpin/cursor-free-vip

๐ŸŒ Website: https://www.cursor.com/

๐Ÿ“– Readme: https://github.com/yeongpin/cursor-free-vip#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 37.2K stars
๐Ÿ‘€ Watchers: 206
๐Ÿด Forks: 4.6K forks

๐Ÿ’ป Programming Languages: Python - PowerShell - Shell - Batchfile

๐Ÿท๏ธ Related Topics:
#automation #free #cursor #cursors #pro #cursor_ide #freetrial #cursorai #cursor_ai


==================================
๐Ÿง  By: https://t.me/DataScienceM
โ€ข Error Handling: Always wrap dispatch logic in try-except blocks to gracefully handle network issues, authentication failures, or incorrect receiver addresses.
โ€ข Security: Never hardcode credentials directly in scripts. Use environment variables (os.environ.get()) or a secure configuration management system. Ensure starttls() is called for encrypted communication.
โ€ข Rate Limits: SMTP servers impose limits on the number of messages one can send per hour or day. Implement pauses (time.sleep()) between dispatches to respect these limits and avoid being flagged as a spammer.
โ€ข Opt-Outs: For promotional dispatches, ensure compliance with regulations (like GDPR, CAN-SPAM) by including clear unsubscribe options.

Concluding Thoughts

Automating electronic message dispatch empowers users to scale their communication efforts with remarkable efficiency. By leveraging Python's native capabilities, anyone can construct a powerful, flexible system for broadcasting anything from routine updates to extensive promotional campaigns. The journey into programmatic dispatch unveils a world of streamlined operations and enhanced communicative reach.

#python #automation #email #smtplib #emailautomation #programming #scripting #communication #developer #efficiency

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
By: @DataScienceN โœจ
๐Ÿ”ฅ Trending Repository: agents

๐Ÿ“ Description: Intelligent automation and multi-agent orchestration for Claude Code

๐Ÿ”— Repository URL: https://github.com/wshobson/agents

๐ŸŒ Website: https://sethhobson.com

๐Ÿ“– Readme: https://github.com/wshobson/agents#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 21.9K stars
๐Ÿ‘€ Watchers: 249
๐Ÿด Forks: 2.5K forks

๐Ÿ’ป Programming Languages: Python - Shell

๐Ÿท๏ธ Related Topics:
#automation #orchestration #workflows #agents #ai_agents #claude #anthropic #anthropic_claude #claude_code #claudecode #subagents #sub_agents #claudecode_subagents #claudecode_config #claude_code_subagents #claude_code_commands #claude_code_cli #claude_code_plugin #claude_code_plugins #claude_skills


==================================
๐Ÿง  By: https://t.me/DataScienceM
โค1
๐Ÿ”ฅ Trending Repository: cursor-talk-to-figma-mcp

๐Ÿ“ Description: TalkToFigma: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.

๐Ÿ”— Repository URL: https://github.com/grab/cursor-talk-to-figma-mcp

๐ŸŒ Website: https://x.com/sonnylazuardi/status/1901325190388428999

๐Ÿ“– Readme: https://github.com/grab/cursor-talk-to-figma-mcp#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 5.9K stars
๐Ÿ‘€ Watchers: 39
๐Ÿด Forks: 634 forks

๐Ÿ’ป Programming Languages: JavaScript - HTML - TypeScript

๐Ÿท๏ธ Related Topics:
#agent #design #automation #ai #mcp #cursor #figma #ai_agents #llm #llms #generative_ai #agentic #agentic_ai #model_context_protocol


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: awesome-claude-skills

๐Ÿ“ Description: A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows

๐Ÿ”— Repository URL: https://github.com/ComposioHQ/awesome-claude-skills

๐Ÿ“– Readme: https://github.com/ComposioHQ/awesome-claude-skills#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 31.5K stars
๐Ÿ‘€ Watchers: 244
๐Ÿด Forks: 3K forks

๐Ÿ’ป Programming Languages: Python - JavaScript - Shell

๐Ÿท๏ธ Related Topics:
#automation #skill #mcp #saas #cursor #codex #workflow_automation #ai_agents #claude #rube #gemini_cli #composio #antigravity #agent_skills #claude_code


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: addons

๐Ÿ“ Description: โž• Docker add-ons for Home Assistant

๐Ÿ”— Repository URL: https://github.com/home-assistant/addons

๐ŸŒ Website: https://home-assistant.io/hassio/

๐Ÿ“– Readme: https://github.com/home-assistant/addons#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 1.9K stars
๐Ÿ‘€ Watchers: 73
๐Ÿด Forks: 1.8K forks

๐Ÿ’ป Programming Languages: Shell - Dockerfile - Groovy - HTML - Python - C - CMake

๐Ÿท๏ธ Related Topics:
#docker #iot #automation #home #hacktoberfest


==================================
๐Ÿง  By: https://t.me/DataScienceM
โค1
๐Ÿ”ฅ Trending Repository: aios-core

๐Ÿ“ Description: Synkra AIOS: AI-Orchestrated System for Full Stack Development - Core Framework v4.0

๐Ÿ”— Repository URL: https://github.com/SynkraAI/aios-core

๐ŸŒ Website: https://github.com/allfluence/aios-core

๐Ÿ“– Readme: https://github.com/SynkraAI/aios-core#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 291 stars
๐Ÿ‘€ Watchers: 29
๐Ÿด Forks: 171 forks

๐Ÿ’ป Programming Languages: JavaScript - Python - Shell - Handlebars - PLpgSQL - CSS

๐Ÿท๏ธ Related Topics:
#nodejs #cli #development #automation #framework #typescript #ai #orchestration #fullstack #agents #ai_agents #claude


==================================
๐Ÿง  By: https://t.me/DataScienceM
๐Ÿ”ฅ Trending Repository: Scrapling

๐Ÿ“ Description: ๐Ÿ•ท๏ธ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

๐Ÿ”— Repository URL: https://github.com/D4Vinci/Scrapling

๐ŸŒ Website: https://scrapling.readthedocs.io/en/latest/

๐Ÿ“– Readme: https://github.com/D4Vinci/Scrapling#readme

๐Ÿ“Š Statistics:
๐ŸŒŸ Stars: 11.9K stars
๐Ÿ‘€ Watchers: 73
๐Ÿด Forks: 795 forks

๐Ÿ’ป Programming Languages: Python - JavaScript - Dockerfile

๐Ÿท๏ธ Related Topics:
#python #crawler #data #automation #ai #mcp #scraping #crawling #web_scraper #web_scraping #selectors #xpath #data_extraction #stealth #webscraping #crawling_python #playwright #web_scraping_python #ai_scraping #mcp_server


==================================
๐Ÿง  By: https://t.me/DataScienceM