Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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://...
Attila Vajda's user avatar
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 ...
766F6964's user avatar
  • 901
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 ...
NGH's user avatar
  • 167
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),...
retep's user avatar
  • 189
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 ...
user14773854's user avatar
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: ...
Amirhossein Rezaei's user avatar
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 ...
user1235598399's user avatar
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. ...
szoriac's user avatar
  • 21
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/ ...
sjcexplorer's user avatar
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 ...
Craig's user avatar
  • 21
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 ...
Mohammad Sadra Sharifzadeh's user avatar
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 ...
ccpizza's user avatar
  • 157
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 ...
Ian McGarry's user avatar
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 ...
Louisono's user avatar
  • 125
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 ...
Edward's user avatar
  • 67.2k

15 30 50 per page
1
2 3 4 5