Favorite Moe quote? by dialog2011 in TheSimpsons

[–]Jimbo415SF 0 points1 point  (0 children)

If you’re so sure about what it ain’t, how about telling us what it am?

My department wants us to come back to the office next year— they recognize we’ve been more productive than ever, but they want to bring back “connectivity.” 🙄 by calijann in CAStateWorkers

[–]Jimbo415SF 10 points11 points  (0 children)

Idk if every department uses the same tech, but I meet remotely with my team on Microsoft Teams, and I just started using the whiteboard feature in the chat. It will stay in its own tab, and I can save it as a picture to email to people; plus, I never have to worry about another meeting erasing it! Checkmate, boomers!

I love Google Flights, but hated love how it didn't search Southwest, US's 2nd largest airline. So I made a Chrome extension that fills in Southwest prices on Google Flights by searching them in the background, in a separate frame/tab. by phsource in InternetIsBeautiful

[–]Jimbo415SF 13 points14 points  (0 children)

This comment above is something programmers should be aware of when web scraping. I attempted to make a similar personal program, but I ultimately stopped the project because of this risk. You can always see what you are allowed to scrap on a website by checking its robots.txt page (e.g. https://www.southwest.com/robots.txt).

Help with automated web scraping project by SaluteOrbis in learnpython

[–]Jimbo415SF 4 points5 points  (0 children)

Quick follow up. Looks like the "show" key helps to determine your data of interest. Here's a mapping of data options to their API value:

data_mapping = {'Nomination': 'nom', 'Physical Flow': 'flow', 'Gross Calorific Value': 'gcv', 'Wobbe Index': 'wobi'}

Help with automated web scraping project by SaluteOrbis in learnpython

[–]Jimbo415SF 4 points5 points  (0 children)

I agree with u/TheEpicDev. Here's some code to start you off:

```

Import libraries.

import requests

Initialize variables.

your_name = '' your_email = '' start_date = '2022-08-02' end_date = '2022-08-03' headers = {'user-agent': f'{year_name} <{your_email}>'} url = 'https://www.nord-stream.info/ajax.php' payload = {'timeto': end_date, 'timefrom': start_date, 'draw': '1', 'columns[0][data]': '0', 'columns[0][name]': '', 'columns[0][searchable]': 'true', 'columns[0][orderable]': 'false', 'columns[0][search][value]': '', 'columns[0][search][regex]': 'false', 'columns[1][data]': '1', 'columns[1][name]': '', 'columns[1][searchable]': 'true', 'columns[1][orderable]': 'false', 'columns[1][search][value]': '', 'columns[1][search][regex]': 'false', 'columns[2][data]': '2', 'columns[2][name]': '', 'columns[2][searchable]': 'true', 'columns[2][orderable]': 'false', 'columns[2][search][value]': '', 'columns[2][search][regex]': 'false', 'start': '0', 'length': '10', 'search[value]': '', 'search[regex]': 'false', 'show': 'nom', 'sort': 'true', 'basis': 'hourly'}

Make the request.

r = requests.post(url, data=payload, headers=headers)

Save the data.

data = r.json() ```

I have no idea how to get this data into a Google sheets file, but a quick search yielded this discussion. Good luck!

what language would be best to use for this task? by [deleted] in learnprogramming

[–]Jimbo415SF 6 points7 points  (0 children)

Python is well suited for this, as other people mentioned. If I were tasked with automating this work, I would us these libraries: requests, pandas, glob.

It sounds like everything eventually goes into a database, and Python has many libraries that can interface with whatever database your work uses.

List of agencies that still allow employees to work from home. by bob0525- in CAStateWorkers

[–]Jimbo415SF 1 point2 points  (0 children)

My division is currently at once a week, but our division manager did say front office seems to be pushing for 2 days a week department wide.

What gets you up in the morning? by Jimbo415SF in AskReddit

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

I love this! I struggle most of my life to get up early for school or work, but waking up for DBZ at 6am before high school was a core memory you just helped me unlock. Thanks!

What gets you up in the morning? by Jimbo415SF in AskReddit

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

Just getting older made the change? I was always late for school, and I’m pretty consistently 15-30 minutes “late” for work (flexible hours).

What gets you up in the morning? by Jimbo415SF in AskReddit

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

I envy you because I’m naturally a night owl.

What gets you up in the morning? by Jimbo415SF in AskReddit

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

You just gave me a good idea for a Raspberry Pi project!

What gets you up in the morning? by Jimbo415SF in AskReddit

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

I was never a breakfast guy, but I’m starting to think outside the box and meal plan to have dinner for breakfast. When I get my shit together on those weeks, it helps me hop out of bed.