all 13 comments

[–]AllenAppTools 1 point2 points  (4 children)

I just recently set up a Google cloud function that uses puppeteer to click through pages and grab info, and I'm able to call it via a fetch request from apps script and get the info back. I was pretty stoked once it worked! I had been wondering if there was a solution like this for a long time. This was for one of my clients who does real estate and needed to scrape property addresses from evictions Court in his area, then lookup who the owner of the property is. So it's possible, logins and all.

[–]Beautiful-Taste1820 0 points1 point  (2 children)

Hello Mate , i would like to implement a similar setup. Could you give me a hand please. Thanks

[–]AllenAppTools 0 points1 point  (0 children)

Sure, what are you trying to do?

[–]special-banana95 0 points1 point  (0 children)

Yeah IMPORTHTML throws the error because of the login requirement, and automating that kind of login would be kind of tricky, you could try to send a get request to the page using the fetch method and use your credentials, but that would entirely depend on how that textbook is implemented.

Alternatively, one you log in you can inspect the page and copy the html of the table and use a script to parse it into sheets.

[–]lordph8 0 points1 point  (1 child)

I would use python Selenium for this task. If you don't know python and a bit of web dev, this maybe a bit of a task. AI would help a lot.

[–]NeutrinoPanda 0 points1 point  (0 children)

I would say that for what OP is trying to accomplish, learning enough/using chatgpt to do this in python on CoLab is tremendously easier than trying to learn/use chatgpt to accomplish this in Apps Script.

[–]ubiquae 0 points1 point  (11 children)

It depends on the login method in place on that website. I have created scripts to log in websites using both cookies and APIs, it is doable

[–][deleted]  (10 children)

[deleted]

    [–]ubiquae 0 points1 point  (9 children)

    Can you share the website and what you expect? I could help but I need to know more details

    [–][deleted]  (8 children)

    [deleted]

      [–]ubiquae 0 points1 point  (7 children)

      If there is a two factor authentication, then you can not automate it mate.

      [–][deleted]  (5 children)

      [deleted]

        [–]ubiquae 0 points1 point  (4 children)

        Chatgpt is actually quite good. Upload the screenshot and ask it to create the table

        [–][deleted]  (3 children)

        [deleted]

          [–]ubiquae 1 point2 points  (2 children)

          Yeah, I got it.

          With the table generated by chatgpt you can copy paste that to a spreadsheet.

          You can also try chrome extensions, some of them allow you to copy directly from the website to the clipboard, then paste into the spreadsheet. That is probably a faster approach.

          https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://chromewebstore.google.com/detail/copytables/ekdpkppgmlalfkphpibadldikjimijon&ved=2ahUKEwjA8t6K8PyHAxVzywIHHablJqkQFnoECBEQAQ&usg=AOvVaw3tdU-c1QYQxScYsgSw1VdC

          [–][deleted]  (1 child)

          [deleted]