crazy-days-and-nights-lawsuit-public
Web Service that clones Crazy Days and Nights
https://github.com/cesardgm/crazy-days-and-nights-lawsuit-public
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.7%) to scientific vocabulary
Repository
Web Service that clones Crazy Days and Nights
Basic Info
- Host: GitHub
- Owner: cesardgm
- License: mit
- Language: HTML
- Default Branch: main
- Size: 258 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Crazy Days and Nights Lawsuit
~~You can view the final output of this project at Crazy Days and Nights Lawsuit~~ Project is now defunct. It was availale on "crazydaysandnightslawsuit.net" until end of 2023.
Purpose
The purpose of this project was to test the capabilities of GPT-3.5 Turbo. The tasks before it included the ability to - clone the blog "Crazy Days and Nights", - provide numerical analysis about the blog, and - provide updates on the latest legal challenges faced by the blog.
Project Overview
This project is a fully developed and comprehensive, data-driven web service app. It was built using Flask, HTML, CSS, JavaScript, and MySQL, focusing on a real-world lawsuit investigation.
Infrastructure
A robust data infrastructure was established with a self-hosted MySQL database and two AWS EC2 instances - one hosting the application and master database, and the other serving as a replica for increased data reliability and performance.
Task Automation
Designed and executed a scheduled task using CRON jobs, which performs daily data scraping using Pythons Beautiful Soup and facilitates automated backup of the database via mysqldump exports and imports, enhancing data safety and integrity.
Domain and Security
Configured AWS Route 53 for domain purchase and forwarding, and set up HTTPS for secure communication.
Database Integration
Integrated the database with the web application to display real-time data to users, applying best practices for data security by using a MySQL user with limited privileges.
Version Control
Utilized Git for effective version control throughout the project.
Owner
- Login: cesardgm
- Kind: user
- Repositories: 1
- Profile: https://github.com/cesardgm
Citation (citation.py)
from datetime import datetime
"""
@app.route('/lawsuit')
"""
def generate_citations(title, author, url):
# Extract the website from the URL by removing the protocol and everything after the first slash
website = url.split('//')[-1].split('/')[0]
# Get today's date and format it as "dd Mon. YYYY"
access_date = datetime.today().strftime('%d %b. %Y')
# Construct the MLA citation
mla_citation = f'"{title}". {website}, by {author}, {url}. Accessed {access_date}.'
# Define the publication date and format it as "YYYY, Month dd"
publication_date = datetime(2023, 5, 14).strftime('%Y, %B %d')
# Construct the APA citation
apa_citation = f'{author}. ({publication_date}). {title}. {website}. Available at: {url}'
# Pack both citations into a dictionary
citations = {"mla": mla_citation, "apa": apa_citation}
return citations
GitHub Events
Total
- Push event: 2
Last Year
- Push event: 2