I want to extract the page buttons/widgets in a website using URLREAD.
이전 댓글 표시
I want to learn what is the common expression for Buttons/Widgets that contain page numbers of a catalog, e.g. like in this website . In this capture you'll see what are the numbers I'd like to get using URLread command.

Do you know how to do this? You'd help me A LOT if you can. I already tried printing everything into a .txt file but I can't write the whole HTML code into it. My plan was to look for the common expression manually but I couldn't print the whole outcome of URLread into the .txt file.
Thanks a lot,
Aquiles
댓글 수: 3
Walter Roberson
2017년 9월 14일
The HTML for that section is
<ul class='pagination'>
<li class='disabled'><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=0'> < </a></li>
<li class='active'><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=1'>1</a></li>
<li class=''><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=2'>2</a></li>
<li class=''><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=3'>3</a></li>
<li class=''><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=4'>4</a></li>
<li class=''><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=5'>5</a></li>
<li class=''><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=6'>6</a></li>
<li class='disabled'><span>...</span></li>
<li><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=83'>83</a></li>
<li class=''><a href='/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=2'> > </a></li>
</ul>
So you want to look for index.php and page=\d+
Ajpaezm
2017년 9월 14일
Walter Roberson
2017년 9월 14일
Yup, I just visited the page in Firefox and hit command-U and scrolled through the HTML.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Share and Distribute Software에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!