Python Forum
Getting stock symbols from this website
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting stock symbols from this website
#1
Hi, I'm trying to get the stock symbols on this website (https://marketdata.set.or.th/mkt/sectorq...=PF%26REIT)

i.e. AIMCG, AIMIRT, AMATAR etc.

I know how to install the libraries, parse the webpage etc. I know how to use find, find_all and things like that. But this part stumps me.

Reason being the stock symbols are in a tags but I don't know how exactly to search for these. There are other links on the website too.

Beginner in python here. Thanks in advance for everything!
Reply
#2
These are all displayed using JavaScript. You will need to use selenium to scrape.
see tutorials on this forum here:
web scraping Part1
web scraping Part2
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020