Message Boards Message Boards

GROUPS:

[✓] Get HTML of a website using Import?

Posted 1 year ago
1206 Views
|
1 Reply
|
1 Total Likes
|

Hi. I am trying to use Import to read a webpage, but it doesn't seem to work. Please help.

website =  "https://www.cse.lk/home/company-info/JKH.N0000/announcements"
websiteData = Import[website]

websiteData just ends up as a blank string.

Any help would be much appreciated. Thank you.

Priyan.

The website you are trying to import is built with AngularJS. I don't think there is any way to 'get' its contents other than viewing in a modern web browser. Perhaps you could ask that company if they have an api that you could programmatically access.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract