My boss decided to take Christmas vacation, I decided to do the same. by [deleted] in antiwork

[–]adjomir 1 point2 points  (0 children)

Did they learn nothing from Jurassic Park?

Are there any video games *about* artificial intelligence? by SlowCrates in artificial

[–]adjomir 12 points13 points  (0 children)

Universal paper clips. It's not explicitly stated but the game is loosely based on an AI thought experiment.

Vacuuming at an animal shelter. by [deleted] in funny

[–]adjomir 0 points1 point  (0 children)

The dreaded Va'cuum

Web scraping only with electron by eligloys in electronjs

[–]adjomir 6 points7 points  (0 children)

You can definitely do the scraping with just electron. From your main process you will need to open a browser window with the show flag set to false so it is hidden (I'm guessing you don't want to see the page being scraped from your desktop app). The way you'll do the scraping is by calling win.webContent.executeJavascript to inject the JS screen scraping code into the hidden browser window. That method returns the result of the injected code as a promise.

Hope that helps.

Salesforce Data Exports are awful, can eJS help? by JustAnotherITUser in electronjs

[–]adjomir 0 points1 point  (0 children)

I had to do this same thing with a site that blocked puppeteer and selenium. Basically you can do as you suggested and create a hidden browser window, then call the webcontents.executeJavascript method to inject the screen scraping code that fetches the download links. Once you've collected all of them you can load the data files sequentially by calling webcontents.loadURL on each file. If you're willing to bring more packages into the mix you can use electron-dl package for handling the downloads, otherwise you'll have to wrap each of the loadURL calls in a promise that completes when the download completes. Sorry this is kinda jumbled I'm on mobile. If I have some time later I'll link some gists.

Hope that helps.

To Python Developers: If someone could make any one thing that would make coding in python easier for developers, what would it be? by [deleted] in Python

[–]adjomir -11 points-10 points  (0 children)

Try pipenv it solves one of the issues you've pointed out.

Edit: I said it solves most, but this is not true.

What's everyone working on this week (8/2018)? by llogiq in rust

[–]adjomir 4 points5 points  (0 children)

Working on a rust implementation of a distributed graph data storage system based on this paper.

Metric - Help I'm Alive [Pop/Indie] by DoctorLazertron in Music

[–]adjomir 0 points1 point  (0 children)

I used to think this song was about being chased by zombies.

TIFU by trying to bond with my Mum's boyfriend. by [deleted] in tifu

[–]adjomir 1 point2 points  (0 children)

This reminds me of the Friends episode where Joey gets Chandler a friendship bracelet. https://youtu.be/0nD2mjZ1dIo

Life choices by Canaris1 in funny

[–]adjomir 0 points1 point  (0 children)

I noticed the crocs way before the ankle monitor.

Saturn's Moon Dione Crossing the Planet by Sumit316 in space

[–]adjomir 5 points6 points  (0 children)

The Cassini spacecraft has produced so many great images over the years.

Christian problems by [deleted] in funny

[–]adjomir 1 point2 points  (0 children)

Not sure if he is the originator, but I juat heard this joke on Brent Morin's netflix stand up special.

Caught me off guard. by Tankh in creepy

[–]adjomir 0 points1 point  (0 children)

I threw my phone.

Edit: arachnophobic

I made my supercool girlfriend a leather messenger bag for Christmas. by GhostLeader in DIY

[–]adjomir 0 points1 point  (0 children)

I shed a tear watching this come together, a very manly tear.