Questions tagged [web-access]
Questions about using Mathematica for accessing web sites and using such functions as URLFetch and URLSave.
228
questions
0
votes
0answers
29 views
Chrome keeps changing the default download folder, Can I use WebExecute to override or otherwise convince Chrome to accept my preference?
I have been pleased to find WebExecute for logging into web sites and downloading data that is updated daily from other sources, but Chrome keeps downloading the files to the factory default /download ...
1
vote
2answers
91 views
How to use Import to extract data from website?
I would like to extract data of surface properties and grain boundary properties for Cu polymorph #0 from the website: http://crystalium.materialsvirtuallab.org using Mathematica.
So far I tried with <...
3
votes
1answer
69 views
Get file downloaded from click in WebSession?
I'm downloading a file by clicking a button from chrome with the WebDriver functionality:
...
0
votes
0answers
37 views
Web crawler, where access is needed
I want to make a web crawler and download a bunch of files that are located in different directories on the website. Accessing the files need username and password input as well (the website is https:/...
5
votes
2answers
118 views
How to start an incognito web session?
Is this possible to do with StartWebSession, in either with Chrome or Firefox?
0
votes
0answers
15 views
WebSessionObject from Process
StartWebSession creates a websession which can be controlled with many commands to automate web stuff. It is limited -- what if one wants to include arguments to ...
2
votes
1answer
82 views
3
votes
2answers
272 views
How to monitor multiple async image downloads?
I have a few thousand image urls that I want to download asynchronously, how can I do that while monitoring progress? I'm really asking for 5 things:
Show dynamic progress in bar
Downloads must be ...
0
votes
0answers
22 views
download all the files (pdf, doc, xls..etc _no photos) of a Facebook group just by putting a corresponding group link
I belong to many groups on facebookand in many of them many files are uploaded daily, it is possible with mathematica to download to my pc in a "group" folder all the files of a particular ...
0
votes
0answers
31 views
Expanding website file display ---------show files in full format
Many times looking for some material I find websites that seem to use a format that does not allow the file name to be fully visible.
You download the file that you think it is and it turns out that ...
6
votes
2answers
174 views
Curl analog with URLRead/Execute?
I have a working curl command:
curl https://myapp.herokuapp.com/doit -F filedata=@path/to/img.jpg
How do I write this in the modern way with ...
4
votes
1answer
79 views
How to send keys to the element in focus with WebExecute
Exploring the WebExecute function, I would like to know how can I send key (or TypeElement) to the element in focus. Here is a toy code using Google.
...
0
votes
1answer
88 views
URLDownload(and URLSave, Import) “Error while processing content unencoding”
I'm downloading a file of exactly 1000K-size (https://gitee.com/WolframPaclet1/WolframPacletExtreme1/raw/master/Paclets/MXNetResources-WIN64-12.0.37.paclet.601) with ...
2
votes
1answer
123 views
How to use WebExecute to retrieve WebElementObject HTML?
I know that I can use WebExecute to retrieve WebElementObject text, as in this example:
...
0
votes
0answers
79 views
429 error when importing webpage
I am interested in checking which of my favorite groceries are on special at which supermarket before going to the shops (to know which items to buy from which supermarket) but every time I try to ...
3
votes
2answers
163 views
Bug in WebExecute TypeElement with diacritics characters [Solved]
[Solved in 12.1.1]
When using WebExecute TypeElement, I get $Failed if I have a diacritics ...
4
votes
1answer
93 views
Can Delayed FormFunction redirect to itself (with body)
I want a FormFunction to show a history of inputs, by default an empty list. But once the submit is hit, the form should be reloaded with the history shown on top.
...
1
vote
0answers
63 views
Cannot launch Chrome or Firefox Driver with StartWebSession[]
The Mathematica 12 in my computer cannot launch Chrome or Firefox session correctly. The first error message is
...
1
vote
1answer
178 views
Basic API Key authentication not working with URLExecute
I am a newbie with RESTful APIs and have never tried accessing one from inside Mathematica. I am trying to access the Companies House API, in the UK. The following command works fine from the Terminal ...
5
votes
0answers
173 views
Decompose website into rectangular grid?
I'd like to take an image of a website and decompose it into a rectangular clustering of dominant pixels like this:
What I've tried so far
There are a few existing webpage segmentation solutions:
...
8
votes
0answers
172 views
Guide to capturing the complete image of given urls?
I'm trying to use WebImage[] to capture the complete image of a website (yes, it might be very tall). I seem to be having some issues with it:
How to attempt to capture a complete image of the ...
3
votes
0answers
83 views
Make Mathematica aware of private root certificate authority
I have a private root certificate authority and when I use functions like URLRead[] to connect to a local HTTPS endpoint, I have to add ...
4
votes
2answers
273 views
SSL errors when using URLFetch or URLSave in versions 8 or 9
It seems that with Mathematica 8 and 9 it is not possible anymore to
download files from SSL encrypted urls. In my case (Fedora 30) on Mathematica 8
(it has no ...
2
votes
1answer
408 views
URLSave in Mathematica 10 and 11 on Linux [closed]
It seems that URLSave doesn't work as expected with https links in Mathematica 10.4
on Linux. At least in my case (Fedora 30) for
...
2
votes
1answer
116 views
Convert Plot to Base64 [closed]
My goal is to get a Base64 string directly from a plot (or any Graphics object) in Mathematica such that, when using a Base64 decoder online, such as this one, I ...
5
votes
1answer
134 views
Using WebExecute to automatically download data
With WebExcute, I have been able to get access to a particular url https://www.hkex.com.hk/eng/sorc/options/statistics_hv_iv.aspx
However, in this url, there is a quite a number of stock code that ...
4
votes
0answers
185 views
Privacy in web-queries [closed]
The question What information is sent to Wolfram Research when loading or working with Mathematica? describes the information sent to Wolfram's servers in routine Mathematica usage (Documentation ...
3
votes
0answers
147 views
How to use Mathematica in Chrome extension?
Now that the wolfram engine is free (for developers), I'd like to know how to use it within a chrome extension. It's easy to make a chrome extension, which is essentially just a JSON file with some ...
0
votes
0answers
76 views
Yahoo groups is going away: how can I download the old messages?
It looks like all the old email messages from my group are stored in web pages with URLs that look like this:
...
10
votes
1answer
204 views
Mathematica 12: Failure with URLRead
Bug introduced in 12.0
The following HTTP request fails to submit the body under version 12, but works in Mathematica 11:
...
12
votes
1answer
338 views
How to work with ElasticSearch in Mathematica?
Steps to install and run ElasticSearch:
install Java (64-bit): https://www.java.com/en/download/manual.jsp
download ElasticSearch (https://www.elastic.co/start) and extract archive in ...
4
votes
2answers
234 views
Can WebExcute click on a button on a webpage that has been created with Javascript?
In an effort to explore the new WebExecute capabilities in Version 12 I have created a simple algorithm to download some data that are stored on an external server and displayed on a webpage. I am ...
1
vote
0answers
85 views
Writing to ElasticSearch [duplicate]
Could someone kindly direct me to suitable documentation, Wolfram or otherwise, to connect Mathematica to an ElasticSearch instance. I don't need anything complicated just sufficient to write a record ...
2
votes
1answer
141 views
How to extract audio from a Youtube video
Is it possible to extract audio from a Youtube video using Mathematica? I have looked at this post and figured out that it is impossible to download videos with the Youtube API. Are there any possible ...
11
votes
2answers
1k views
Temporarily simulate being offline programmatically
Today I am running Mathematica from a computer that is permanently connected to our university network. Because of a number of reasons, I am not allowed to disconnect my computer from our network.
My ...
7
votes
1answer
809 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:
...
5
votes
1answer
412 views
Mathematica equivalent of a curl snippet
Is there any documentation anywhere on how to convert an invocation of curl into the Mathematica equivalent (using for example ...
1
vote
1answer
91 views
Unable to use the Import[] function to get the clickable hyperlinks of a page
I can get the hyperlinks of the Google search result of "Wolfram" by using the following code:
Import["https://www.google.nl/search?q=Wolfram", "Hyperlinks"]
Now ...
0
votes
0answers
43 views
How do I import changing/dynamic data on a webpage?
A remote device (sensor) is sending measurements (that I get in JSON format) to a given URL and is sending new measurements (data points) every couple of minutes. I cannot share the URL but the ...
5
votes
2answers
158 views
“Accept” header in HTTP request for DOI Content Negotiation
I am trying to get the .bib info from a DOI, following the guide here.
Basically, I wish to run
...
10
votes
1answer
281 views
Using URLExecute to login to website
One of my students is doing summer research for a local company to help analyze some of their data. Trouble is, the web interface they provide for downloading the data only allows one to download one ...
2
votes
0answers
84 views
What could cause an “Uncaught Throw[$Failed,CURLLink`Utilities`Exception] returned to top level.” error message?
I am running a program in Mathematica that uses web browser automation, and is also connected to my email account. The program runs fine for a while, but after a few hours, I end up getting the ...
0
votes
0answers
38 views
Verify that a document matches a URL
Writing:
Quiet[Length[Import["http://www.africau.edu/images/default/sample.pdf"]]]
I get:
2
while writing:
...
2
votes
0answers
35 views
How to overcome the threshold 500 ExternalLinks for downloading of the WikipediaData?
The command, for instance,
WikipediaData["Global warming", "ExternalLinks"]
gives me 500 links only, as so as
...
2
votes
0answers
82 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:-
<...
5
votes
1answer
347 views
How to click a button to upload local file with WebExecute?
A webpage has a "browse" button to open the filesystem to select a file and upload it, in html it looks like this:
...
6
votes
3answers
197 views
Find and load all ResourceFunctions as top level functions?
I would like to be able to use ResourceFunction's as top-level symbols:
The reason being that some of them are so useful it would be really great not to have to ...
3
votes
2answers
262 views
Number of line in website [closed]
I want to download the content of the website(contains text) and only a few lines from the content (from a specific number of the line up to the last line minus specific offset). Unfortunately, I do ...
1
vote
0answers
29 views
WebImageSearch for images of high resolution?
Is there a way to specify a minimal image dimension when using WebImageSearch? Since it costs money I don't want to do a large search and then filter the results.
...
3
votes
2answers
125 views
WebExecute timeout
There isn't much tuning freedom available in the WebExecute method. If a page takes too long to load you only see a spinner or a blank for CapturePage. Does someone ...