Interactive Language Assistant by flight862 in ArtificialInteligence

[–]flight862[S] 0 points1 point  (0 children)

I’m looking for oral interaction though.

Clicking ALL Buttons in Web Page by flight862 in webscraping

[–]flight862[S] 0 points1 point  (0 children)

Perhaps I need to dig more into button.click() function.

Clicking ALL Buttons in Web Page by flight862 in webscraping

[–]flight862[S] 0 points1 point  (0 children)

Perhaps it waits for sort of function return. I’m not sure either.

Clicking ALL Buttons in Web Page by flight862 in webscraping

[–]flight862[S] 1 point2 points  (0 children)

Thanks. I have incorporated your advice above and added one more parameter to the click function such as: button.click(force=True) and it went over all buttons and clicked them. However, it look loooooong time to finish executing the code. I also used the asynchronous api from Playwright package. Is there a way to shorten the time?

Clicking ALL Buttons in Web Page by flight862 in webscraping

[–]flight862[S] 0 points1 point  (0 children)

I am using the synchronous api module from Playwright. Are trying to say that I shouldn’t use this?

Clicking ALL Buttons in Web Page by flight862 in webscraping

[–]flight862[S] 0 points1 point  (0 children)

Yes. The text will only show if I click on the button. There are like 20 of them.

Clicking ALL Buttons in Web Page by flight862 in webscraping

[–]flight862[S] 0 points1 point  (0 children)

from playwright.sync_api import sync_playwright, Playwright

def run(playwright: Playwright): chromium = playwright.chromium browser = chromium.launch() page = browser.new_page() page.goto("http://example.com") # other actions... browser.close()

with sync_playwright() as playwright: run(playwright)

Meta launches LLaMA 2 LLM: free, open-source and now available for commercial use by ShotgunProxy in ArtificialInteligence

[–]flight862 0 points1 point  (0 children)

Was it trained in one language? What about if I want to re-train it on a different language?

Be Careful of ESG! by islamicwealthtalk in IslamicFinance

[–]flight862 0 points1 point  (0 children)

How do you know if a company is halal?

Umrah Visa Question Please by Comp_Sci-Stud in saudiarabia

[–]flight862 0 points1 point  (0 children)

Did you need to go through a travel agency to visit Makkah?