16 votes
Accepted

YouTube Video inside Mathematica 13?

We know Mathematica supports communication with different programming languages via external connectors. I will show a way with Python here. Main idea is to import the YouTube streaming link using an ...
PlatoManiac's user avatar
  • 14.6k
15 votes

Making a website with Mathematica

In my opinion, Mathematica's XML template feature makes this quite easy. You'd write your HTML code for each page using XML templates, and then populate the templates with data as necessary using <...
C. E.'s user avatar
  • 70k
13 votes
Accepted

How to obtain the distance (in Km/Miles and in minutes) by road ?. for example using googlemaps

You can use TravelDistance and related functions to find the distance by road. Example: ...
Szabolcs's user avatar
  • 233k
13 votes
Accepted

Google Image Search in Notebook?

Mathematica now supports a native connection to GoogleCustomSearch API. To use image search you can do: ...
xtian777x's user avatar
  • 1,018
13 votes

More complete "MutipartData" POSTs using URLFetch

This is a hack, but it works. ...
ZachB's user avatar
  • 1,200
12 votes

Making a website with Mathematica

This is not an anwser to produce live/production code for websides. (yet) I guess it's not what you want because its not very sophisticated but one could use MMA to make a good html code emitter ...
Julien Kluge's user avatar
  • 5,335
12 votes

Making a website with Mathematica

This small note describes the method I use. I've been using this method for years. (all of my web site is written in Latex actually, and converted to HTML. First I used to use latex2html then switched ...
Nasser's user avatar
  • 137k
12 votes
Accepted

Temporarily simulate being offline programmatically

You can set $AllowInternet to False (or just turn off your WiFi or unplug the cable).
Szabolcs's user avatar
  • 233k
11 votes
Accepted

Mathematica equivalent of a curl snippet

You can use a program like Fiddler to compare the requests being generated by both: Your call to curl generates a request like this: ...
Gustavo Delfino's user avatar
10 votes

Making a website with Mathematica

I thought I'd just briefly lay out what I do so people don't have to go to the link to my blog post in the question. The packages for all this junk are here, here, and here. Look for the things with <...
b3m2a1's user avatar
  • 46.6k
10 votes

How to test upload speed?

The easiest method I can think of to get an estimate is to upload a file to a server and measure how long it takes. Should give a reasonable guess, but like all of these things, it can only be a guess....
Carl Lange's user avatar
10 votes

YouTube Video inside Mathematica 13?

I think the issue might be with the nature of the content in this URL. It's not that you are not been able to access the URL, as you can check yourself with running either ...
Victor K.'s user avatar
  • 5,116
9 votes

Security of SendMail

Computers communicate with each other through protocols. For example, web servers communicate with browsers using HTTP – the Hypertext Transfer Protocol. Another protocol is HTTPS – the Hypertext ...
C. E.'s user avatar
  • 70k
8 votes

How to tell (sub)kernels on a cluster not to try to access wolfram servers on startup?

As an alternative it can also be done programatically following this link $AllowInternet = False Or to the frontend You can use: ...
chris's user avatar
  • 22.6k
8 votes

Temporarily simulate being offline programmatically

A general solution for Windows is to run an application (such as Mathematica) inside a Sandboxie sandbox, for which Sandbox Settings > Restrictions > Internet Access has been set to "No program can ...
Mr.Wizard's user avatar
  • 270k
7 votes
Accepted

Incorporating photos into a Mathematica-made web page

I haven't seen a clear cut solution listed anywhere even though this question is quite old. Thus, I will post my solution here. The easiest solution is to use SVG format rather than to fiddle with ...
Tadashi Kikuno's user avatar
6 votes
Accepted

MathLink: How to change the default listening IP address?

Use the undocumented LinkHost option, e.g.: LinkCreate[LinkProtocol -> "TCPIP", LinkHost -> "127.0.0.1"] yields: ...
sakra's user avatar
  • 5,100
6 votes
Accepted

Downloading a number of images from a web site as a list

I wrote this in the comment, but the code did not come out properly formatted. So here it is again: Import["https://en.wikipedia.org/wiki/Mathematica", "Images"]
Lotus's user avatar
  • 2,651
6 votes
Accepted

Reading data from Google Docs

This seems to work: ...
chuy's user avatar
  • 10.8k
5 votes

Print only when webpage updates

Your approach is the only viable option: You have to download the website to see if it has changed. I wrote some sample code just try it, and I didn't think this solution presented a performance issue....
C. E.'s user avatar
  • 70k
5 votes
Accepted

Is there a way to turn off paclet updating altogether?

You can open Preferences > Internet Connectivity and uncheck Allow the Wolfram System to access the Internet. Alternatively ...
Ray Shadow's user avatar
  • 7,776
5 votes

webmathematica to share my game?

This applies to any Wolfram Cloud based web application, not simply to your question, but there are say 4 steps involved in creating a web app. Hopefully some of this carries over from WC to ...
b3m2a1's user avatar
  • 46.6k
4 votes

Can anyone explain how to use Mathematica's OAuth package?

In version 11 of Mathematica, I have used this (it's almost the same as Max's answer): ...
Peter Stuifzand's user avatar
4 votes
Accepted

Scraping Google nGram data

In chrome, after you run the ngram query, you can go to the "Developer tools", find the source file starting with graph?content=", search for the string ...
ulvi's user avatar
  • 1,808
3 votes

How to tell (sub)kernels on a cluster not to try to access wolfram servers on startup?

I post this answer as it provided a solution to us. Please adapt on a case by case basis to your own situation ? One solution is to make sure that the file ...
chris's user avatar
  • 22.6k
3 votes

Making a website with Mathematica

Here's my second method, based on C.E.'s idea of using XMLTemplate. I've detailed exactly what I did here This is a site that I built with my generator My process ...
b3m2a1's user avatar
  • 46.6k
3 votes
Accepted

How to detect an HTTP redirect when importing or reading a URL?

There is no redirect. The URL https://en.wikipedia.org/w/index.php?title=Basidiomycete returns the same page as ...
Gustavo Delfino's user avatar
3 votes

Using SendMail with new Google Security Rules

If you have activated the two-step verification in gmail, you need to use an password dedicated to one application. This works straightforwardly. From https://support.google.com/accounts/answer/185833:...
anderstood's user avatar
  • 14.2k
2 votes

How to manipulate web pages on Mathematica?

This is most informative as I have been trying to understand the intricacies of using the POST Method via Mathematica to obtain tabular data that I then subsequently parse. The example works fine for ...
Stuart Poss's user avatar
  • 1,774
2 votes

why URLFetch is slow when encapsulated by module and how to fix it

You might check for "StatusCode" before going on to do the parsing. Also ImportString[str,"HTML"] will make the code a bit less ...
user1473011's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible