All Questions
66 questions
3
votes
2
answers
74
views
Paragraph structure template generator refactoring
This is an app that generates random statement types, and basic conjunctions. How to improve its readability and function? How to deploy this code app online? This is the GitHub repository: https://...
4
votes
1
answer
205
views
Blog site generator in python
Summary:
This project is a simple static blog site generator written in python, utilizing pandoc to convert posts written in Markdown to HTML. It is essentially a follow up to my previous post: blog ...
1
vote
1
answer
106
views
Counting Ads in webpage using XPath and EasyList in Python
I have the following the function the retrieves a given webpage and returns the number of adverts that are on the page using a shortened version of EasyList (17,000 rules). Using multiprocessing, this ...
5
votes
1
answer
205
views
constraint solving graduation using HTML Parsing, pandas, and z3
not sure if this project fits on code review, but my code is getting extremely messy, and would love some tips to clean it up!
Overview
The project is designed to take in an HTML file (a degree audit),...
3
votes
0
answers
81
views
Command line notebook
I used Python and a little bit of JavaScript using the (Python) modules Dominate and Flask to create a web app that somewhat resembles the Jupyter Notebook though with very basic functionality. I ...
3
votes
2
answers
244
views
A better way to extract COVID data from Worldometers
I was trying to fetch some data (daily new cases and daily new deaths) from Worldometers and I came up with this:
...
3
votes
1
answer
103
views
HTML Paragraph Identifier
I have various texts that are inconsistent in how paragraphs are formatted. Some texts use the <P> </P> tags to specify a paragraph, while others use ...
2
votes
2
answers
150
views
How do I make my html object-to-table array script run faster? (Pandas)
I have a data frame that has several columns, one of which contains html objects (containing tables). I want a column of table arrays.
My problem is that this piece of code takes a long time to run. ...
5
votes
1
answer
247
views
Python Rubiks cube solver - general code comments
I have been learning Python/Flask for the past 5 months outside of full time work and have just finished a first complete version of an app:
Working site: https://rubiks-cube-solver.herokuapp.com/
...
2
votes
1
answer
203
views
Sanitize user-supplied HTML with Python and Regular Expressions
I have a product that needs to have users put content in a form that potentially contains HTML and display it back to other users. I'd like to mitigate the risk as much as possible, and I can limit ...
3
votes
1
answer
289
views
rename .html file from <title> tag with python
I have many html files saved to my computer.they have same tags like this: Rpi-Cam-Web-Interface- Page 2 - forum
and the page number changes
I want to rename file ...
3
votes
1
answer
242
views
CSS preview generator (in python)
Given a CSS file the script generates an HTML preview of all the CSS definitions by recursively drilling down the chain of nested classes, ids and tag names. Rules with ...
2
votes
0
answers
57
views
Six Nations Prediction league Web App
I built a simple web app to manage my friends and I's six nation prediction league. This is my first go at web development so although it works I am guessing that I am not following all best practices ...
3
votes
1
answer
7k
views
Automate html file editing with python - Change the author
Hello I would like to use python to change the author of an html file, in order to do so I have written a few lines.
First I have used the HTMLParser class from ...
2
votes
1
answer
456
views
Create HTML page to document contents of directory
I often work on embedded system projects in which I have a number of documentation files, such as microprocessor datasheets, schematics, bills of materials, etc. I find it convenient to create a ...