Questions tagged [html]
Questions related to the use of Mathematica for creating or manipulating HTML documents.
129 questions
3
votes
1
answer
105
views
Constructing a URL query using URLDownload or URLRead
I am trying to download data from NOAA and I can't figure out how to construct a query to do it.
This URL points to a page that contains data for tides at six minute intervals between Jan 01 2021 and ...
1
vote
1
answer
414
views
How to publish a Mathematica notebook to a journal as supplementary material?
I've done part of a proof via Mathematica. In the appendix of the paper I've linked to this published notebook, since I misunderstood "With any paid subscription plan, all files stored in the ...
1
vote
0
answers
112
views
Export to HTML which opens links to web locations in a new tab
I occasionally export notebooks as HTML. These notebooks contain many hyperlinks to web locations that were inserted non-programmatically with ...
0
votes
0
answers
106
views
Save notebook as HTML: Styles not preserved
I am saving a notebook as an HTML document. The html file is created, but the coloring and styles are lost. It appears in black and white.
When saved as a PDF, it works.
Is there anything extra that I ...
2
votes
0
answers
134
views
How to convert the <table> element into Grid
I got the html source code for this element for this page in Wikipedia:
...
1
vote
0
answers
109
views
Download html file
I want to download the data found on the following page and I am unable to do so.
https://resultados.admision.uni.edu.pe/ep1.html
I have already tried all the options I find in Mathematica but I can't ...
4
votes
1
answer
250
views
Is it possible to build a small web site with vanilla Mathematica? How about a web server?
Note: This question is not about WebMathematica. I speculate it is capable of doing everything about to be discussed.
With its diverse capabilities and near endless ...
45
votes
4
answers
7k
views
How to translate interactive graphics from Mathematica to standard HTML+SVG?
I have a simple interactive plot in Mathematica, with controls for various parameters. The point of the plot is simply that users can explore how the plot changes as the parameters change by ...
1
vote
1
answer
268
views
Convert .gif to HTML and keep animation [closed]
I want to convert any .gif in HTML on Mathematica
and keep the animation of the gif. For this I use this function:
...
0
votes
1
answer
280
views
Importing RSS to Notebook: How to get images instead of long ugly links?
This question on importing news headlines via a RSS feed reminded me of an old question I've been meaning to ask.
Past attempts at finding a use for Mathematica's RSS to Notebook capabilities were ...
4
votes
1
answer
129
views
How can I wrap groups of cells with HTML tags on export?
Exporting a notebook to HTML in a way that worked with my site's styles was far easier than I anticipated:
...
4
votes
2
answers
275
views
What is the Mathematica string expression to extract the innertext of an HTML element?
Consider the following example of text extraction.
...
2
votes
1
answer
861
views
How to convert a <table> element into SVG image?
I want to get the SVG format about this <table> element in this page. It looks like this:
But I want to get it with a SVG ...
1
vote
0
answers
33
views
What's the Best Way to Import This GICS Table from the Web? [duplicate]
I am trying to import this table from Wikipedia and create a dataset:
https://en.wikipedia.org/wiki/Global_Industry_Classification_Standard
...
0
votes
1
answer
224
views
How to obtain stock information from a website
I want to obtain some information of stock markets from TradingView website.
For instance, let us access to S&P index chart through the URL,
https://www.tradingview.com/chart/?symbol=SP%3ASPX
Now, ...
3
votes
0
answers
96
views
How to insert input into Jupyter notebook using WebExecute
I started web session and opened a Jupyter notebook in it:
...
8
votes
1
answer
347
views
How to deploy a simple contact form with WebItems?
I'd like to make a contact form exactly like this page:
Of course changing the icon and where it gets sent to, but otherwise exactly the same look.
Key features:
Submit sends an email
Field are ...
4
votes
2
answers
435
views
How to extract numbers from a html file?
Consider an .html file. Among the code, it contains there are strings
...
6
votes
1
answer
216
views
Tooltip in a GeoGraphics isn't working when exported as an html file.... it worked some years ago. What gives?
A few years ago, in an earlier version of Mathematica™, I had lovely results in exporting to HTML, a map made with GeoGraphics with Tooltips for counties.
I've just tried doing something similar and ...
4
votes
1
answer
167
views
How to work around HTML not importing full HTML as XMLObject
I'm trying to parse some data out of the HTML for a form. Here's a simple one
...
2
votes
0
answers
179
views
Find the best place to overlay text on an image?
I need to put text over a background image to make a nice looking banner. In order to find the best place to put it, I'd like to know the "focus points" of the image (basically the centers ...
1
vote
2
answers
146
views
Converting HTML Tables derived from URL's on the Web to Datasets 211112 Revisited
In a previous question [211112] that deals with importing data from a
Wikipedia table directly into a Dataset.
For the following data:
...
3
votes
1
answer
364
views
Import all data from a HTML table, including empty cells
I wanted to create a dataset of all UFO sightings in April of 2018. The
AssociationThread doesn't want to work, because some of the entries are missing value, what ...
0
votes
0
answers
272
views
Embedding a CDF on Web page
I'm using Mathematica 12.x, and I have created a CDF, which I tested using Wolfram Player. I'm trying to make it so that I can have the CDF to be used on a web page. I purchased a non-basic Wolfram ...
15
votes
2
answers
1k
views
How to export to HTML and not lose Grid Frame in the generated HTML?
This is a known issue for me with Mathematica. When I export a notebook to HTML, Mathematica loses some decorations such as Grid Frame lines (in grid and like objects).
For example, creating this ...
4
votes
1
answer
126
views
XML, select several values
I import a XML file, using:
xmldatatest =
Import["C:\\...\\...\\name.xml", {"XML", "XMLObject"},
"ReadDTD" -> False]
...
1
vote
0
answers
98
views
Importing a local html file fails
Anyone have any idea why this is failing?
The file is there. A file in the same (Windows 10) dir called "test.txt" imports exactly as expected. But .HTML files fail without a useful error ...
2
votes
1
answer
419
views
Using java-script code in Mathematica
I have the following HTML file stored on "C:\local.html":
...
2
votes
0
answers
94
views
What is the best way to produce 3d images of tangles and show them on the web so that they can be rotated by the viewer?
On my html5 website on physics, I would like to add computer graphics of tangles, similar to the following photo, and I would like to allow users to rotate the image of a tangle and thus allow viewing ...
44
votes
2
answers
3k
views
Extract information from HTML using CSS selectors?
TL;DR Is there any way that we can parse HTML using CSS selectors in Mathematica, the way it is done in for example jQuery?
Extracting information from websites, i.e. web-scraping, in Mathematica can ...
5
votes
1
answer
306
views
How to run a wolfram-server safely on a VPS as a backend of a webpage?
If one runs SocketListen on a Virtual Private Server (VPS), in principle one can set up a webpage with the Wolfram Language as a back-end.
For instance, with ...
4
votes
0
answers
84
views
Problem with links when using Workbench (Eclipse version) HTML Documentation Build
I am building a package documentation with eclipse workbench. I have used the Mathematica code in the following link Workbench (Eclipse version) HTML Documentation Build HTML issues to fix some ...
15
votes
1
answer
559
views
Workbench (Eclipse version) HTML Documentation Build HTML issues
Description
The HTML generated for local viewing by Workbench (Eclipse plugin version 10.1.757) has some issues before they can be published. This post is in continuation of the original question ...
7
votes
1
answer
989
views
web scraping images
I am trying to load player profile pictures from the following page:
https://www.transfermarkt.com/manchester-united/startseite/verein/985/saison_id/2006#
I use the following code:
...
3
votes
1
answer
93
views
Do not skip empty table entries while importing data from HTML string?
Consider importing the following table from an HTML string:
...
53
votes
1
answer
3k
views
Google Map in Notebooks?
GoogleMaps are implemented as HTML and Javascript code which can be viewed by a web browser. Is it possible to load this map into the Mathematica notebook, which obviously means for example that
<...
4
votes
0
answers
342
views
Does Mathematica's front-end notebook provide a way to render html inside it
Jupyter notebook provide a way to render html in its markdown language cells. I know Jupyter is browser based so clearly could be just using the browser's html renderer. But does Mathematica's ...
2
votes
0
answers
157
views
How to use EmbedCode with CloudDeploy correctly?
I ran EmbedCode[CloudDeploy[Manipulate[Plot[Sin[x + c], {x, -6, 6}], {c, -1, 1}]]] based on this instruction and obtained the html code for embedding as below:-
<...
4
votes
1
answer
141
views
Importing the text from paragraph elements within a specified division
I'd like to import plaintext found within paragraph blocks nested anywhere inside certain div's. Here's a page to try it on:
...
5
votes
0
answers
76
views
HTML export: Customize footer
If I export a notebook to HTML, this is inserted at the end of every page:
...
2
votes
0
answers
218
views
HTML export: How to link back to main page from subpages?
When exporting to HTML, there is an option to create separate pages for closed cell groups. This is done with the "ConvertClosed" -> "LinkedPage" option, or with ...
4
votes
0
answers
72
views
DirectedEdge character doesn't appear when Save As HTML
The \[DirectedEdge] character doesn't appear when I save a notebook as HTML.
Here's the notebook, which saves itself to HTML:
Here's the HTML:
In the HTML, the <...
3
votes
1
answer
156
views
Add Mathematica to MathJax MathML Right Click Annotation Menu
I have started putting Mathematica code in the annotations portion of on my website, but right now I am editing the code manually. Is there an more robust automated way to do this? Example HTML page ...
5
votes
1
answer
152
views
3
votes
1
answer
365
views
4
votes
1
answer
1k
views
Getting data using webscraping (Obtaining links from search engine with redirect)
In the past I have used the function Import in relation with "Hyperlink" to collect hyperlinks and data from the internet.
For ...
5
votes
0
answers
91
views
How to deploy a simple game as an html page
I have taken the following code from the mister Wizard answer to my old question Programming the fiver game
...
6
votes
2
answers
369
views
Export Table with URL as HTML?
This is expression:
...
4
votes
1
answer
221
views
Import from url question -- "Cannot import data as Graph6 format"
When I import url, there will show the folling message:
"Cannot import data as Graph6 format"
The codes as following:
...
2
votes
1
answer
187
views
Building template object routines
I'm interested in building a website theme with Mathematica's XMLTemplate as proposed by C. E. here.
The problem is, Mathematica's template syntax is verbose and a ...