Questions related to the use of Mathematica for creating or manipulating HTML documents.

learn more… | top users | synonyms

18
votes
2answers
383 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 ...
13
votes
3answers
1k views

How to scrape the headlines from New York Times and Wall Street Journal?

How to scrape headlines from New York Times, Wall Street Journal main pages to create datasets similar to this service? Importing HTML from nyt.com (HTML4) results in a ...
11
votes
1answer
682 views

Exporting numbered equations to HTML/TeX using conversion rules

This question is a follow up from this one. It may also be considered a duplicate since I have already asked this question in stackoverflow almost a year ago. For a background on using numbered ...
39
votes
1answer
2k views

Google Map in Notebooks?

Using Mark McClure's GPXToGoogleMap results in a HTML and Javascript code which can be viewed by any browser. Is it possible to load this map into the notebook, which obviously means for example that ...
23
votes
3answers
1k views

Download xkcd Click and Drag comic

Inspired by the recent question about xkcd styled plots I started looking at xkcd again and I came across a comic titled Click and Drag. And if you do that, you start exploring a larger drawing. A ...
9
votes
1answer
408 views

How can I use “Save as (html)” and still render code as text?

I use notebook "Save as ... (html)" to convert my .nb to web. Formulas and plots get converted to images, which is fine. But code (input cells) get converted too into images. I would like people to be ...
10
votes
1answer
304 views

How to work around incorrect tooltips in plots exported to HTML

This is an issue that I always wanted to investigate but haven't gotten around to solving yet: The tooltips for contour lines in a plot like this can be very useful in the Notebook interface: ...
4
votes
2answers
361 views

How to save a web page in mathematica?

For a given web page http://www.nytimes.com/, is it possible to save it as : first: only HTML(within css) second: more elements(include pictures and so on) just like what a browser can do. ...
4
votes
0answers
256 views

Notebook manipulation to “Save as (HTML)”

In a previous question, I said that I wanted to display code as text in "Save as (HTML)". I am closer, but would like to ask the community for a better approach by telling the whole picture. I did my ...
2
votes
1answer
256 views

Exporting HTML code to file.html

I've got a problem with re-saving html code. Lets create html file: ...
11
votes
1answer
439 views

Dynamic visualization of Graph[] on a webpage

How can we embed a dynamic version of a Graph object on a web page, similar to the one showcased on the networkx home page? This sort of dynamic visualization can ...
4
votes
1answer
457 views

Extracting text from nested HTML lists <ul> <li>

We wish to analyze the tree structure of HTML documents that consist of nested lists, ie, using the HTML tags <ul> and ...
1
vote
0answers
99 views

Exporting CellFrameLabels to HTML

I have a notebook that has several cells with CellFrameLabels and I'd like to export the notebook to HTML. However, the CellFrameLabels are lost during export. Here's an example of what I'm working ...
4
votes
2answers
204 views

Cleaning up a List of HTML Data to Render Usable Information

I am using Mathematica to scrape information from webpages. To get file information, I am gathering plain text that is enclosed by <tr> and ...
3
votes
1answer
158 views

How to grab CellTags from a Cell?

I am in the process of creating a palette for a specialised "Save as HTML". For context please see this. How can I grab the CellTags from a Cell[...] object? This is my first iteration, aka testing ...
1
vote
0answers
29 views

Problem of importing some special characters in HTML

content of the html file is as follows: <p> 被尊称为&ldquo;高贵的&rdquo; </p> method1: ...
1
vote
0answers
87 views

Import LaTeX from Wikipedia to Mathematica [duplicate]

Here is one a problem I land on from time to time. Sometimes while researching, I want to pull a formula presented in a Wikipedia page and import it into Mathematica. I've heard that Wikipedia uses ...
0
votes
0answers
33 views

Possible bug of Exporting as HTMLFragment at Linux

This is the result of Mathematica 10.0.2 of Linux Version. There are two style inside one tag, and this fragment cannot be Imported as XML by Mathematica. This is the result of Mathematica 10.1 of ...
0
votes
1answer
128 views

Move selection to next Output and export to CDF

In my quest to a custom "Save as HTML" (please see context here) I am now able to iterate through the notebook, grab Input cells decorated with a CellTag that, by convention, is going to be a file ...