Code Monkey home page Code Monkey logo

generalapi's Introduction

General API Chrome Extension and Server

๐Ÿšง This project is under construction and contributions are welcomed! ๐Ÿšง

The long-term vision is to interact with any HTML form, and make HTML an API, thus the name, generalapi.

This project consists of a Chrome extension and a Node.js server to automate form filling on job application pages, including interacting with reCAPTCHA.

Chrome Extension

Features

  • Parses job application forms
  • Fills out text inputs, checkboxes, and uploads resumes
  • Scrolls to reCAPTCHA for manual interaction
  • Adds a visual indicator to the reCAPTCHA element

Installation

  1. Clone the repository:

    git clone https://github.com/sandwriter/generalapi.git
    cd generalapi
  2. Navigate to the extension directory:

    cd extension
  3. Load the extension in Chrome:

    1. Open Chrome and navigate to chrome://extensions/.
    2. Enable "Developer mode" using the toggle in the top-right corner.
    3. Click the "Load unpacked" button and select the extension directory.

Usage

  1. Click the extension icon in the Chrome toolbar.
  2. Click the "Fill Form" button to automatically fill out the form on the current tab.

Server

Features

  • Parses HTML forms using GPT-3.5
  • Provides an endpoint to handle form parsing and filling requests

Prerequisites

  • Node.js
  • npm (Node Package Manager)

Installation

  1. Navigate to the server directory:

    cd server
  2. Install the dependencies:

    npm install
  3. Create a .env file in the server directory and add your environment variables:

    touch .env

    Example .env file:

    OPENAI_API_KEY=your_openai_api_key
    LOGGLY_TOKEN=your_loggly_token
    LOGGLY_SUBDOMAIN=your_loggly_subdomain

Usage

  1. Start the server:

    npm start
  2. The server will run on http://localhost:3000.

Endpoints

  • POST /parse-form: Parses an HTML form and returns the filled form data.

    Request Body:

    {
      "formHtml": "<form>...</form>"
    }

    Response:

    {
      "filledFormData": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "phone_number": "123-456-7890"
      }
    }

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

generalapi's People

Contributors

sandwriter avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.