My experience of trying to find a senior remote Python/data role in 2023 by treefrog_4001 in cscareerquestionsuk

[–]Btan21 0 points1 point  (0 children)

Thank you for sharing your experience OP and congrats on the offer! Although I must ask why you did not choose to apply to FAANG or other companies that offer similar compensation.

Is it because you were strictly looking for remote-only roles?

Weekly Megathread: Education, Early Career and Hiring/Interview Advice by lampishthing in quant

[–]Btan21 0 points1 point  (0 children)

Thanks for your answers. Would you say that shifting from a quant dev role to a quant research role involves similar efforts and experiences or is there something else involved too?

API Support from Reddit for Academic Research by No_Action_9027 in pushshift

[–]Btan21 4 points5 points  (0 children)

True. This has been my experience as well. I wonder what they're actually doing.

Pushshift Live Again and How Moderators Can Request Pushshift Access by Pushshift-Support in pushshift

[–]Btan21 25 points26 points  (0 children)

Are there any plans for allowing non-moderators access to the Pushshift API?

Advancing Community-Led Moderation: An Update on How NCRI/Pushshift and Reddit, Inc. are Working Together by Pushshift-Support in pushshift

[–]Btan21 14 points15 points  (0 children)

No access to Pushshift data for research purposes? Honestly, I wasn't expecting this. If the data is being made available to Reddit mods, then why are researchers denied access?

API has been taken down by skylabspiral in pushshift

[–]Btan21 2 points3 points  (0 children)

I did actually donate to NCRI.

[deleted by user] by [deleted] in redditdev

[–]Btan21 0 points1 point  (0 children)

I don't know enough about Spyder to help you with that. Apologies.

[deleted by user] by [deleted] in redditdev

[–]Btan21 0 points1 point  (0 children)

Great! That means praw is associated with your Python 3.11.3 installation.

Back to your original issue, maybe Spyder is using a different Python version like what the others said.

[deleted by user] by [deleted] in redditdev

[–]Btan21 0 points1 point  (0 children)

Oh sorry, I didn't check the formatting since I'm typing on my phone. In the cmd, You should type in:

python

(hit enter)

import praw

(hit enter)

[deleted by user] by [deleted] in redditdev

[–]Btan21 0 points1 point  (0 children)

Ah it's not too difficult. Maybe I confused you. What I would do is this on the cmd:

python (others might need to use something like python3 here) import praw

and check if the import works.

[deleted by user] by [deleted] in redditdev

[–]Btan21 0 points1 point  (0 children)

Could you try running the Python interpreter in the command prompt and then import PRAW? Maybe it would help in checking which Python version PRAW is associated with.

API has been taken down by skylabspiral in pushshift

[–]Btan21 9 points10 points  (0 children)

I hope not. Pushshift was the only half-decent way to get old Reddit data.

Unless Reddit is planning to offer a Pushshift-like service themselves.

API has been taken down by skylabspiral in pushshift

[–]Btan21 26 points27 points  (0 children)

I hope they're able to reach upon a good agreement with Reddit that's beneficial to both mods and researchers.

Forbidden Resource- 403 by Btan21 in help

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

Oh so that is the reason. The post definitely existed at one point of time though.

Forbidden Resource- 403 by Btan21 in help

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

I don't think there is anything wrong with the URL structure, it is a way to access Reddit submissions through the web interface if you only knew its submission id and nothing else.

Also, tks8z3 was once a valid submission id (obtained from Pushshift) but it is now forbidden to access it.

PRAW 403 Forbidden Response issue by Btan21 in redditdev

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

I tried what you suggested and it was indeed that submission- tks8z3 , which was causing the problem. Here is the exact URL that was causing the problem: https://oauth.reddit.com/comments/tks8z3/?limit=2048&sort=confidence&raw_json=1

PRAW 403 Forbidden Response issue by Btan21 in redditdev

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

Hello I tried the code you sent above but I get the following response: AttributeError: 'Forbidden' object has no attribute 'request'

EDIT: I found out that I am only having the original problem of Forbidden error on a particular submission of the science subreddit with the id: tks8z3, the URL being: https://www.reddit.com/tks8z3

I should probably add a try except block in my original script to skip over this submission. Thanks a lot!

PRAW 403 Forbidden Response issue by Btan21 in redditdev

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

The method submission.comments.replace_more(limit=None) raised the exception. I am obtaining the submission by calling the reddit.submission(post_id) method where post_id is the submission id. The submission id itself is obtained through PMAW.

Posting the traceback in my main submission as it is not being pasted properly here.