I’m trying to use Mathematica to automatically gather and analyze data from the internet. It’s a pet project but one that I hope to become quite useful some day. I’ve made decent progress but then ran into some issues. At the moment, I’m trying to solve two issues, and would appreciate any help or suggestions how to resolve them:
WebSearch stopped working. I’ve been using WebSearch to find websites of solar energy related topics. It worked great at the beginning, but after two days of using it, the command stopped working. Now it executes as if it was an unknown command (i.e. just returns the written text WebSearch[“topic”]. Does anyone have an idea what happened there? Neither restarting the computer nor quitting the kernel helped.
This might be a stupid question, but I have banged my head against it for too long. How do I reset the saved ServiceConnect connection to GoogleCustomSearch? I want the program to prompt the API again, but have so far been unsuccessful (even after updating from 11.2 to 11.3 it didn’t prompt the API again). ServiceDisconnect doesn’t do the trick, as it doesn’t delete saved connection. Anyone any ideas?
In the soon-to-be-release version 12 of the Wolfram Language we are including another option to interact with web pages, namely the function WebExecute. Here is a sneak preview of the documentation:
It is based on a repository of mine on GitHub (GitHub - arnoudbuzing/webtools: A Wolfram Language package which automates interactions with web browsers · GitHub) and lets you control a Chrome or Firefox web browser. It can complement the WebSearch function in the sense that you can navigate to a page, take screen captures of a page, click on links, type input fields, submit forms, and execute javascript to return text, data, or images from a web page of interest.
You can delete the saved connections using below commands( those are not documented though):
In[11]:= savedConnections =
ServiceConnections`SavedConnections[“GoogleCustomSearch”]