Why do I get this error message "FORBIDDEN" when trying to read web data?

6 ビュー (過去 30 日間)
Mark C
Mark C 2017 年 11 月 9 日
コメント済み: Walter Roberson 2017 年 11 月 9 日
I'm trying to copy the text from this URL: https://seekingalpha.com/article/4119881-activision-blizzard-atvi-q3-2017-results-earnings-call-transcript?part=single
And get the following (attached) error message.
Why am I getting this and how can I work around it? All I simply want to do is copy the text data on the page.
Thank you!

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 11 月 9 日
The page has protections against automated access.
For example when you access with webread() then by default no browser information is sent.
  2 件のコメント
Mark C
Mark C 2017 年 11 月 9 日
Thank you, Walter. Do you know of a good workaround using MatLab or any other methods? Or do the page restrictions basically prohibit any sort of automated process to run on it?
Walter Roberson
Walter Roberson 2017 年 11 月 9 日
The first thing I would try changing would be the UserAgent https://www.mathworks.com/help/matlab/ref/weboptions.html

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by