mbapolaris.blogg.se

Why doesnt reddit work for chrome for mac
Why doesnt reddit work for chrome for mac











why doesnt reddit work for chrome for mac
  1. #Why doesnt reddit work for chrome for mac how to
  2. #Why doesnt reddit work for chrome for mac install
  3. #Why doesnt reddit work for chrome for mac update
  4. #Why doesnt reddit work for chrome for mac code

Other cloud platforms have similar tools. If you have a docker container in Google Cloud Run, you can set schedules with Google Cloud Scheduler. If you want to leave your laptop on, or you have a virtual server running, you could schedule the script to run using cron, the unix-scheduler, or python-crontab to make it easier. You could also put your script on a raspberry pi in your kitchen, or run the notebook on Binder, or Google Collab.

#Why doesnt reddit work for chrome for mac install

Install the dependencies on your virtual serverĪs an aside, notebooks can be run in ‘headless’ mode with a library called Papermill - I’ve been looking into using that to automatically run notebooks.

why doesnt reddit work for chrome for mac

  • A virtual server (EC2, Google Cloud compute, Digital Ocean etc) (More advanced: a docker container to be deployed anywhere including serverless environments like Google Cloud Run).
  • Copy the script and dependency list to:.
  • Create dependencies file (pipfile or requirements.txt ) to recreate your development environment.
  • Sections like creating the S3 bucket don’t need to be run every time - so leave them out.
  • Turn notebook into a python script ( example script my_script.py).
  • To deploy it you could follow these steps: A common approach is to turn the notebook into a python script and run it as needed. To deploy this process yourself, there are many many options.

    #Why doesnt reddit work for chrome for mac how to

    I’m not going to go into a large amount of detail on how to set up cloud servers, so skip over this if you want to just run locally and play with the chrome extension! I’d like to store the outputs so I can see changes over time. But running the notebook over time would be much more interesting, to see trends. So far, this notebook is just fine as a one-off exercise. Essentially the notebook saves an image locally for each subreddit I choose, then uploads it to an S3 bucket. The last section of the accompanying notebook details this properly so I won’t lay it all out here. I’m saving images into an AWS S3 bucket (Amazon’s file storage service) I created for this purpose. That could mean serving them with a web server, or saving them into a publicly accessible cloud bucket. I want the outputs from the notebook to be shared with the world, i.e. However, I’m not going to do that here - for one thing - some threads have a lot of comments! I leave it as an exercise to the reader, but if you want to this tutorial explains how you would do it.

    why doesnt reddit work for chrome for mac

    These can be iterated through to get the comments. Each submission found through PRAW comes with variables that give the comment IDs. Taking the top-level or every comment on every submission would give more insights. What about the comments?! It’s a fair point. Hang on, I hear you say - you’re just looking at the submission titles. The PRAW client needs our app client id and secret from the app setup, and it likes a user_agent string as well:

  • Give it a name, and make sure you choose script for the type.
  • Create a new user account for your scripting and then log in.
  • It says I need to create a reddit app, so follow these steps first: The documentation gets me off to a flying start. There is a great python wrapper for the Reddit API, creatively named the Python Reddit API Wrapper, or PRAW.

    #Why doesnt reddit work for chrome for mac code

  • Finally, I’ll serve the data to a Google Chrome extension written in JavascriptĪll the code needed is here.
  • #Why doesnt reddit work for chrome for mac update

    I’ll briefly cover running the script in the cloud, saving the outputs and scheduling a script to update it.First, I’ll grab the data with Python in a Jupyter notebook.I’m going to create an end-to-end application: Who are people discussing in /r/politics, /r/nba, or /r/bestof ? What are people talking about in /r/science, /r/GetMotivated or /r/technology? Where is the hype? I want to find out who or what is popular in a given subreddit over time. Things that are oddly satisfying, or fast workers. I enjoy Reddit because it is real time, it is funny, and I can indulge specific and varied interests like data science and machine learning, juggling, climate change, lockpicking… plenty of things I didn’t know I was interested in. So while no doubt not a completely representative sample of society, there is plenty to examine and thousands upon thousands of communities to explore. The site has gone from a fairly niche corner of the internet to a giant community, boasting 430 million monthly active users in 2019. My Reddit user account is over 10 years old.













    Why doesnt reddit work for chrome for mac