Using MATLAB to obtain information from Chemicalize.com

1 回表示 (過去 30 日間)
Camila Carvalho
Camila Carvalho 2020 年 7 月 21 日
コメント済み: Walter Roberson 2020 年 7 月 22 日
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 件のコメント
Camila Carvalho
Camila Carvalho 2020 年 7 月 22 日
How can I see if the company provides API?
Walter Roberson
Walter Roberson 2020 年 7 月 22 日
Do you have write permissions for the directory you are cd'd to?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeChemistry についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by