ruedigervoigt / salted Goto Github PK
View Code? Open in Web Editor NEWSmart, Asynchronous Link Tester with Database backend: works with HTML, Markdown and TeX files
License: Apache License 2.0
Smart, Asynchronous Link Tester with Database backend: works with HTML, Markdown and TeX files
License: Apache License 2.0
As salted uses sqlite as a cache and does not do anything low-level, using SQLAlchemy seems a good choice.
Create a simple Graphical User Interface that can be opened via the command line parameter --gui
.
Due to the licenses and their deep integration into Python Tkinter
or wxPython
seem to be good choices.
Hyperlinks might contain mailto:mailadress
in the href
field.
Some servers behave differently if the user agent discloses this is a Python script. For example they will not answer HTTP requests because they suspect malicious intent.
salted should by default sent an user agent like "salted - validating hyperlinks"
The user should be able to set the UA string to impersonate a browser if necessary (for example if the rate of false results is too high).
There should be a CLI parameter to specify a logfile
This code in parser.py
:
soup = BeautifulSoup(file_content, 'html.parser')
for link in soup.find_all('a'):
does not match if code falsely uses upper case <A HREF='https://www.example.com/'>..
- like for example the export function from the Chrome bookmark manager.
The simple solution would be to convert everything to lowercase.
This would also mean faster matching.
Yet it looks wrong in the report.
The number of features has grown and likely will grow even more. Therefore salted should use a config file. Simply running from the CLI should produces a result. The config file could be version controlled by the user.
Salted should be able to check links in markdown files.
[link text](url)
is easy to parse.<url>
and it can include raw HTML into a markdown document.Salted has basic support for .tex files, but in scientific projects most links are stored in a BibTeX literature database.
I suspect it's because you need to do
from salted.__main__ import Salted as Salted
instead of
from salted.__main__ import Salted
Or typecheckers won't consider it a re-export.
https://www.python.org/dev/peps/pep-0484/#stub-files
I'm not 100% sure - since the pep only makes the claim about stub files. It's pretty easily reproable by setting up
from salted import Salted
And running mypy --strict testfile.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.