JSoup based HTML parser for parsing orders from Mouser.com into BOM for use in Markdown
I often order components from Mouser.com for my projects and I like to write about my projects in my blog. I needed a convenient way of parsing the orders into markdown which I can easily copy paste into my blog supported by pelican (particularly for including BOMs). Since I couldn't find any existing way of doing it, I decided to build my own. Simply follow the instructions below to build it, and then execute the jar with the URL to your Mouser.com order.-
Download and install openJDK 17, and set the environment variable JAVA_HOME to point to the "bin" folder of your JDK installation.
-
Download Git and install it.
-
Download Maven v3.8.4 and install it.
-
If you installed Git, execute the following command:
https://github.com/1sand0s/Mouser2MD.git
Otherwise, download the repository as a zip ball and extract it. -
Open a command prompt/terminal,
cd
to the project root directory, and executemvn clean install package assembly:single
. -
To convert a Mouser.com order into BOM for markdown,
cd
to thetarget
directory inside project root directory, and executejava -jar mouser2md-0.0.1-SNAPSHOT-jar-with-dependencies.jar <PASTE URL TO MOUSER.COM ORDER HERE>
.