30
votes
Upload from Mathematica to YouTube
I built a service connection for this and blogged about it here: Playing with YouTube from Mathematica
Here's an example of how this works.
Connect to YouTube
First install the paclet:
...
20
votes
Building a GitBook with Mathematica
tl;dr
This is really quite easy with a toolkit I've been building; this is an example of a GitBook I built with these tools.
Preface
This answer is gonna build off some stuff I've been developing ...
16
votes
Accepted
14
votes
How to implement a free version of WebImageSearch?
So after being wrong about Bing being free, we'll pursue my other suggestion, which was to use the ServiceConnect framework. I demonstrate how to use it in general here.
For the purposes of this, ...
14
votes
Accepted
Get title of a webpage only?
As far as I am aware, HTTP doesn't support requesting the <title> element specifically. The browser can either GET the ...
13
votes
Get title of a webpage only?
The HTTP protocol defines the Range header that can be used to limit the number of bytes returned in a response. Web sites are not required to support this header -- but if the target web site does ...
13
votes
Accepted
A tour of AWSLink?
I haven't used these submarined functions for EC2, but I have found the S3 functionalities in this package to be extremely useful. Since there is currently no documentation in v11.3, I thought at the ...
13
votes
Accepted
Import data from dynamically generated webpage
Since the page is generated asynchronously, you can use the same data source that the page itself does. Using the network inspector in my browser, I discovered that the page loaded its data from this ...
13
votes
How to work with ElasticSearch in Mathematica?
Create the new index test and put the data in it:
...
13
votes
Easily download SE posts as notebooks?
Here is an approach, not battle tested, YMMV. It depends on the new body_markdown parameter in the SE API responses. From there we can use whatever MD->NB tool ...
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
Get title of a webpage only?
Import["http://wolfram.com", "Title"]
"Wolfram: Computation Meets Knowledge"
...
11
votes
Accepted
Can I trust URLSubmit?
Bug confirmed:
[...] The source of the issue unknown to us at this point; however, it seems that all the request are submitted, yet tasks finishes prematurely, before getting the status code. [...]
...
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
Web search browser in Mathematica
I started on this, after building out a search paclet for this answer.
The basic idea is to simply provide nicer access to the basic underlying paclet. The code all lives here.
We can use it like so:...
10
votes
Accepted
Can Mathematica run javascript on a website?
This is now possible in Mathematica 12.
For example , you can open a new tab in web browser using following code:
...
10
votes
Can I trust URLSubmit?
This is indeed a racing condition due to TaskObject is created from AsynchronousTaskObject with default value to ...
10
votes
Opening Mathematica file in Google drive
If you have a public link, you can follow the answer to this question, and basically just import the data
Import[url, "Data"]
If you need to authenticate to get ...
10
votes
Accepted
How can I tally users on the Wolfram Challenges leaderboard?
After digging through here: https://challenges.wolfram.com/static/js/main.c80ec588.js I found the data:
...
10
votes
Find and load all ResourceFunctions as top level functions?
There is a helpful function named PersistResourceFunction that permanently stores a function.
Here is what I did:
...
10
votes
Accepted
web scraping images
If you write an HTML img tag like this:
<img src="url/to/image.jpg">
then the image will be downloaded directly upon page load. Some frontend developers ...
9
votes
Accepted
How to cache results of WebImageSearch?
So it looks like the only real way to do this is by hacking the mainframe package that underlies this. Everything seems to be clumsy and hard coded, so I had to dig a little. The following works for ...
9
votes
Opening Mathematica file in Google drive
There is now a Chrome app for opening Wolfram notebooks in Wolfram Cloud.
Once you've installed the app, you can visit your Google Drive on the web and double-click to open a notebook file. You'll ...
9
votes
How to show Plots or Graphics in mini MMA HTTP Server?
Very often SVG makes sense, it will scale well with magnification. This idea does not deserve a separate answer so additionally I rewrote the code in a more idiomatic style:
...
9
votes
Accepted
Using URLExecute to login to website
This is getting a bit too long for a comment. What you want to do is possible, in principle, but web servers can be picky about how the request should look. What we can do is to try to provide as much ...
9
votes
Accepted
Make Mathematica input things on a website and take the data out
ConfigureNodeJSForExternalEvaluate
...
8
votes
8
votes
Programmatic browser interaction: How to click on web-page and get new URL and list of links
Since Mathematica 11.3 there is an experimental implementation for WebDriver, a proposed W3C standard that currently supports Chrome and Firefox web browsers. It allows actions such as ...
8
votes
Accepted
webscraping: Wolfram notebook vs browser
You can actually start and control a web browser session from Mathematica using an experimental implementation for WebDriver, Since Mathematica 11.3. Look at this answer
An example
...
8
votes
Accepted
How to show Plots or Graphics in mini MMA HTTP Server?
You can get it to respond with images by doing the following:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
web-access × 266import × 55
webservices × 28
api × 17
html × 16
wolfram-cloud × 13
webdriver × 12
bugs × 11
url × 11
image × 10
internet × 10
http-functions × 9
webtools × 9
data-acquisition × 8
functions × 7
export × 7
files-and-directories × 7
interoperability × 7
json-format × 6
authentication × 6
web × 6
warning-messages × 5
string-manipulation × 5
character-encoding × 5
automation × 5