Engineers have been posting rude messages on internal company chats using sites like FOAAS (content warning: profanity). HR director is concerned that this behavior may create a hostile work environment, will affect recruiting, and could expose the company to legal liability.
To meet the requirements of the director, this project will build a new version of the FOAAS service built with language suitable to the professional environment, but which still provides the original HTML pages.
On the basis of the user's request, the service will retrieve an unprofessional response from the URL (from FOAAS) and display the original FOOAS response with language suitable for a professional environment by passing the unprofessional message through PurgoMalum (https://www.purgomalum.com).
- http.server
- http.client
- socketserver
- json
- urllib.parse
ProfessionalversionofFOAAS
|
|-- redact.py
|-- server.py
|-- README.md
-
Open up a command-line terminal, and navigate to the directory in which
redact.py
is saved. -
Run the command: python3 redact.py
This should display a message stating: Usage: redact URL *A path can be specified by following the path formats listed on [FOAAS](https://foaas.com/) Example: python3 redact.py /because/ProfAvery
-
The terminal will display redacted message in the intended format (outlined in the code).
-
Open up a command-line terminal, and navigate to the directory in which
server.py
is saved. -
We can now run the command:
python3 server.py
The command-line terminal will display a prompt informing the user what PORT is in use. In our project the port we are using is 8000 (defined in
server.py
). -
Navigate to the local host site, indicating the path to see the message from FOAAS service without curse words. example we would use:
http://localhost:8000/because/ProfAvery
- Nidhi Shah (project lead)
- Priyanka Kadam
- Robert Nguyen