Skip to content

Latest commit

 

History

History
96 lines (64 loc) · 2.01 KB

File metadata and controls

96 lines (64 loc) · 2.01 KB

Python Projects

This repository contains several small Python projects, each demonstrating different functionalities and libraries.

Table of Contents

ChatGPT API

A simple API to interact with ChatGPT using SeleniumBase for web automation. The API is built using Flask.

Requirements

  • Python 3.x
  • Flask
  • SeleniumBase
  • Fake UserAgent

Usage

  1. Run the Flask API:

    python ChatGPT-API/api.py
  2. Send a GET request to the /gpt endpoint with a prompt parameter:

    curl "http://127.0.0.1:5000/gpt?prompt=Hello"

Gif Creator

A Python project that converts video files into GIFs using the moviepy library.

Requirements

  • Python 3.x
  • moviepy

Usage

  1. Update video_path and output_path in main.py.
  2. Run the script:
    python Gif-Creator/main.py

Web to PDF

A Python script to convert a webpage into a PDF using pdfkit and wkhtmltopdf.

Requirements

  • Python 3
  • pdfkit
  • wkhtmltopdf

Usage

  1. Update the script with the correct path to wkhtmltopdf if needed.
  2. Run the script:
    python web-to-PDF/main.py

Wikipedia Python Scraper

A Python script to scrape the Wikipedia article on "Python (programming language)" using Requests and BeautifulSoup.

Requirements

  • Python 3
  • Requests
  • BeautifulSoup

Usage

  1. Install the required libraries:
    pip install requests beautifulsoup4
  2. Run the script:
    python wikiReader/main.py

License

This repository is licensed under the MIT License. See the LICENSE file for more information.

x&Kr^m3^xquPUapc@%TT#8!3aJXR^@78NQajQ4vek!Xpf&Uy3JvLnn@c48QWTdoKUs5N7X*$QpF#3oF$vEUqKrHWqXJH%2^!yH