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 ...
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 <...
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:
...
13
votes
Accepted
Google Image Search in Notebook?
Mathematica now supports a native connection to GoogleCustomSearch API.
To use image search you can do:
...
13
votes
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 ...
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 ...
12
votes
Accepted
Temporarily simulate being offline programmatically
You can set $AllowInternet to False (or just turn off your WiFi or unplug the cable).
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:
...
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 <...
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....
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
...
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 ...
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:
...
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 ...
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 ...
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:
...
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"]
6
votes
Accepted
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....
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 ...
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 ...
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):
...
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 ...
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
...
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 ...
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 ...
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:...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
internet × 67import × 14
web-access × 10
data-acquisition × 7
interoperability × 4
email × 4
image-processing × 3
packages × 3
geography × 3
html × 3
webservices × 3
url × 3
performance-tuning × 2
graphs-and-networks × 2
export × 2
notebooks × 2
expression-test × 2
external-calls × 2
licensing × 2
paclets × 2
security × 2
wikipedia × 2
functions × 1
dynamic × 1
string-manipulation × 1