Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 1qyuuuH21qYrjKYhlbLTTD
Power Automate - Power Automate Desktop
Answered

How I get href links for elements has no links ?

Like (0) ShareShare
ReportReport
Posted on 6 Jan 2023 22:28:08 by 70

Hi

 

I want to scrap https://bubble.io/videos youtube links but the tip/course blue area has no href so how I get the link ?

 

zin45_0-1673044025948.png

 

  • zin45 Profile Picture
    70 on 12 Jan 2023 at 14:09:22
    Re: How I get href links for elements has no links ?

    I think I got all of them thanks to VJR if someone want to learn bubble they are attached.

  • VJR Profile Picture
    7,635 on 11 Jan 2023 at 03:20:52
    Re: How I get href links for elements has no links ?

    @zin45 

    Add UI element for the below and read its value using Get details of element on webpage

    VJR_0-1673407170384.png

     

    After reading it will give you this

    VJR_1-1673407218944.png

     

     

    Then using string functions read the value after the word "of" which is 13.

    Use Crop Text

     

    VJR_2-1673407388892.png

     

     

    This will give the value 13

     

    VJR_3-1673407407625.png

     

     

     

    Pass this value to the number of pages to process.

     

  • zin45 Profile Picture
    70 on 10 Jan 2023 at 17:51:32
    Re: How I get href links for elements has no links ?

    but just in case I did not know there still 13 pages 

  • VJR Profile Picture
    7,635 on 10 Jan 2023 at 03:40:23
    Re: How I get href links for elements has no links ?

    Follow as below to get links of all 13 pages.

    VJR_0-1673321689187.png

     

     

     

    VJR_1-1673321777416.png

     

    After running the process:

     

    You will get 0 to 116 ie; 117 links

     

    VJR_2-1673321829189.png

     

    Either you can write the above DataFromWebpage variable to a csv using Write to CSV.

     

    Or store it in Excel spreadsheet in the Extract data from webpage action.

    VJR_3-1673321907440.png

     

  • zin45 Profile Picture
    70 on 10 Jan 2023 at 00:06:53
    Re: How I get href links for elements has no links ?

    Moving from here to here is a big pain

     

    zin45_0-1673309185474.png

     

  • zin45 Profile Picture
    70 on 09 Jan 2023 at 22:11:22
    Re: How I get href links for elements has no links ?

    Untitled.png

     

  • zin45 Profile Picture
    70 on 09 Jan 2023 at 22:09:13
    Re: How I get href links for elements has no links ?

    WebAutomation.LaunchChrome.LaunchChrome Url: $'''https://bubble.io/videos''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> Browser IF (WebAutomation.IfWebPageContains.WebPageDoesNotContainText BrowserInstance: Browser Text: $'''13 OF 13''') THEN WebAutomation.ExtractData.ExtractTableUsingPagingFromAllPages BrowserInstance: Browser Control: $'''html > body > div:eq(1) > div:eq(3) > div > div:eq(1) > div:eq(0) > div''' ExtractionParameters: {[$'''div > div > div > div:eq(1)''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''div > div > div > div:eq(1) > a''', $'''Href''', $'''''', $'''Value #2'''] } PagerCssSelector: $'''html > body > div:eq(1) > div:eq(3) > div > div:eq(1) > div:eq(1) > div:eq(2) > button''' PostProcessData: True TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage END File.WriteToCSVFile.WriteCSV VariableToWrite: DataFromWebPage CSVFile: $'''C:\\Users\\iuser3\\Documents\\bubble.csv''' CsvFileEncoding: File.CSVEncoding.UTF8 IncludeColumnNames: True IfFileExists: File.IfFileExists.Overwrite ColumnsSeparator: File.CSVColumnsSeparator.SystemDefault

  • zin45 Profile Picture
    70 on 09 Jan 2023 at 22:08:40
    Re: How I get href links for elements has no links ?

    Many thanks

     

    When the short menu appear and try to go the mouse pointer to next menu the menu always close and disappear !!

     

    Another problem the automation reach last page 13 and keep pressing on this page instead I want to store the urls in csv file so I tried like this:

     

     

  • Verified answer
    VJR Profile Picture
    7,635 on 09 Jan 2023 at 03:45:00
    Re: How I get href links for elements has no links ?

    If you want to extract the hyperlinks use as below

    1. Launch browser (Chrome/Edge)

    2. Choose the Extract data from web page action

    (look up the internet for some videos on how to use this action -> Power Automate Desktop : Web Data Extraction - Extract Data from Web Page - YouTube)

     

    Right click on the "How to use.." and then the ones mentioned below in yellow highlighted 

    VJR_0-1673235175731.png

     

     

    Then go to the Advanced settings of the Live web helper window

    VJR_1-1673235264864.png

     

     

    Make changes to the selector as below

     

    VJR_2-1673235387381.png

     

    html > body > div:eq(1) > div:eq(3) > div > div:eq(1) > div:eq(0) > div

    div > div > div > div:eq(1) > a

    href

     

     

    The Live web helper window now shows the list of hyperlinks

    VJR_3-1673235483786.png

     

     

    After running the process you should now see all the hyperlinks in a datatable variable

    VJR_4-1673235572741.png

     

     

    The website you are working on also has pagination

    VJR_5-1673235660239.png

     

    So you need to use set element as pager to get the links of the other pages as shown in below video

    Extract Data from Multiple Web Pages In Power Automate Desktop - YouTube

     

    Best wishes!

     

     

  • zin45 Profile Picture
    70 on 08 Jan 2023 at 06:22:53
    Re: How I get href links for elements has no links ?

    Thanks guys can you please provide more details about the actions and loop I need to use ? I am beginner with power automate 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started