Webread Query Not Working
I am looking to query a forum style page (this forum, actually), but cannot seem to the the queries working as desired.
My goal is to essentially get the most viewed questions about Simulink (as woud be done via this page: https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=Simulink&sort=views+desc)
However, when I try this via webread, the page I get is just the base Answers page, and it isn’t giving me Simulink, nor the sorting.
I am using the following (where indexed will be looped for multiple pages):
url = ‘https://www.mathworks.com/matlabcentral/answers/’;
data = webread(url,’page’, index,’product_base_code%5B%5D’,’Simulink’,’sort’,’views+desc’);
Any advice/help would be greatly appreciated.
Thanks!I am looking to query a forum style page (this forum, actually), but cannot seem to the the queries working as desired.
My goal is to essentially get the most viewed questions about Simulink (as woud be done via this page: https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=Simulink&sort=views+desc)
However, when I try this via webread, the page I get is just the base Answers page, and it isn’t giving me Simulink, nor the sorting.
I am using the following (where indexed will be looped for multiple pages):
url = ‘https://www.mathworks.com/matlabcentral/answers/’;
data = webread(url,’page’, index,’product_base_code%5B%5D’,’Simulink’,’sort’,’views+desc’);
Any advice/help would be greatly appreciated.
Thanks! I am looking to query a forum style page (this forum, actually), but cannot seem to the the queries working as desired.
My goal is to essentially get the most viewed questions about Simulink (as woud be done via this page: https://www.mathworks.com/matlabcentral/answers/?product_base_code%5B%5D=Simulink&sort=views+desc)
However, when I try this via webread, the page I get is just the base Answers page, and it isn’t giving me Simulink, nor the sorting.
I am using the following (where indexed will be looped for multiple pages):
url = ‘https://www.mathworks.com/matlabcentral/answers/’;
data = webread(url,’page’, index,’product_base_code%5B%5D’,’Simulink’,’sort’,’views+desc’);
Any advice/help would be greatly appreciated.
Thanks! webread MATLAB Answers — New Questions