-1

At first sorry for my bad English.

i am trying to scrape web information by python.

this is the code from html, i'd like to extract only link, except the text next to link.

<a href="https://www.mk.co.kr/news/culture/view/2021/03/258551/"">abcdefg~blahblahblah</a>

rioV8
  • 24,506
  • 3
  • 32
  • 49

2 Answers2

0

There is a question about this topic Also i found this blog post here

Erijl
  • 11
  • 1
  • 5
0

Using selenium, you could locate element by xpath:

from selenium.webdriver.common.by import By

driver.find_element(By.XPATH, '//meta[@name="url"]/@content')
Kostas
  • 99
  • 1
  • 2
  • 7