Using MATLAB to obtain information from Chemicalize.com

Hello,
I want to obtain chemical properties from certain subtances from the website chemicalize.com. However, to access my account, I have to put login and password information. How can I automate this process using MATLAB?
For the login information, I used this code, but it keeps giving me the error
"Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 396)
The server returned the status 419 with message "unknown status" in response to the request to URL
https://pass.chemaxon.com/login.
Error in readContentFromWebService (line 46)
byteArray = copyContentToByteArray(connection);
Error in webwrite (line 139)
[varargout{1:nargout}] = readContentFromWebService(connection, options);
Error in smilestocheminfo (line 4)
z = webwrite(url, options);"
Code:
url = 'https://pass.chemaxon.com/login';
options = weboptions('Username','username','Password','mypassword');
z = webwrite(url, options);
Please help!

6 Comments

Well, it's a paid subscription servce so not much anybody here will be abe to do unless they also have a suscription.
It wouldn't be for a user to put in, it would be for myself so I can automate the process of getting information about different compounds from the website.
But how could anyone w/o an account debug anything?
The options will only have worked if the website was using basic authentication.
You may want to see if the company provides you an API that you can call.
Alternatively you may want to use browser automation tools like Selenium or Puppeteer.
How can I see if the company provides API?
Do you have write permissions for the directory you are cd'd to?

Sign in to comment.

Answers (0)

Categories

Find more on Chemistry in Help Center and File Exchange

Asked:

on 21 Jul 2020

Commented:

on 22 Jul 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!