Pop101 / SedOnline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sed Online - Find and Replace Text

GitHub issues

Table of Contents

Overview

Guess the person from 5 sentences about them from their wikipedia page. Every guess reveals more information about the person, starting from obscure sentences from their page, to more and more revealing ones.

Try it out at https://sedonline.leibmann.org!

Technologies

This project is created with:

Getting Started

Clone the Repo and ensure poetry is installed

git clone https://github.com/Pop101/SedOnline/issues
pip install poetry

Install the dependencies

poetry install

Edit the config file (./config.yml)

Run the webserver

poetry run app.py

Usage

Just connect to the webserver on port 2043 http://localhost:2043

To use the API, send a GET request to Get /<pattern>/<replacement>/<input>

pattern is a regular expression. replacement is a string. input is a string or URL.

The response should mirror the input reponse (assuming the input is a URL).

Note that for now, only the Global Matchall regex flag is supported.

You can always customize anything in config.yml, just note that doing so might require you to restart the webserver

About


Languages

Language:Python 65.7%Language:HTML 34.3%