Comments (7)
Yeah, the way to do it would not to be to run Python first, as that just puts you in the shell.
You'll want to run it as python timesearch.py get_submissions -r subredditofchoice
, in one command.
from timesearch.
Thanks @WAUthethird for responding.
@liner601, William is right, Timesearch is run from your terminal / command prompt, not from within the Python interpreter. Make sure to cd
into the Timesearch folder so that you can run python timesearch.py
as William described. Here's a screenshot:
I'll take a look at improving the readme to help people who are new to running Python programs. Feel free to close this issue when you get it working 👍
from timesearch.
Yeah, the way to do it would not to be to run Python first, as that just puts you in the shell.
You'll want to run it as
python timesearch.py get_submissions -r subredditofchoice
, in one command.
Whenever I try to use 'python timesearch.py get_submissions -r subredditofchoice'
It returns a blank output, as if the command hast been run.
from timesearch.
I'm sorry about that, I haven't heard of this problem yet so let's try to figure it out.
Firstly, what does it show when you run python --version
? Do you have multiple versions of Python installed, and the default is not 3+? Did you have any issues during the setup described here?
What happens if you do python timesearch.py --help
? Then python timesearch.py get_submissions --help
? Please try poking around a bit with commands like this and see if you can get some output. Try some of the other commands too. Screenshots would be appreciated if you're able to provide them.
from timesearch.
I'm sorry about that, I haven't heard of this problem yet so let's try to figure it out.
Firstly, what does it show when you run
python --version
? Do you have multiple versions of Python installed, and the default is not 3+? Did you have any issues during the setup described here?What happens if you do
python timesearch.py --help
? Thenpython timesearch.py get_submissions --help
? Please try poking around a bit with commands like this and see if you can get some output. Try some of the other commands too. Screenshots would be appreciated if you're able to provide them.
Thanks for the quick response!
Python shows my version to be 3.7.0, no duplicate installs.
Setup was actually quite easy, no hiccups there.
http://prntscr.com/s4bhd2
Theres a screenshot of my cmd prompt.
Although I've found one odd thing that may be the issue, timesearch.py was 0kbs and when I opened it with visual studio it appears theres no code within it.
Edit: aha! it seems git clone didnt work properly and messed up the timsearch.py, so now only one obstacle to face, the script is telling me to input the contact_info string into the boy.py what am I supposed to put there? cant seem to find anything mentioning that string on the Reddit tutorial.
from timesearch.
Although I've found one odd thing that may be the issue, timesearch.py was 0kbs and when I opened it with visual studio it appears theres no code within it.
Yep, that sounds like a problem alright!
Here's that file: https://github.com/voussoir/timesearch/blob/master/timesearch.py
If that's the only 0kb file, then copy-pasting this code back into the file should work. If any other files look broken, you can always re-download everything from the main page.
This kind of thing tends to happen when using >
in the command prompt, like echo hello > timesearch.py
will put the world hello into the file but delete everything else. Since my readme file uses > timesearch.py
to visually represent the command prompt, I can see how this would easily cause confusion and create problems. I will make the readme more clear. Thank you for opening this issue.
from timesearch.
Although I've found one odd thing that may be the issue, timesearch.py was 0kbs and when I opened it with visual studio it appears theres no code within it.
Yep, that sounds like a problem alright!
Here's that file: https://github.com/voussoir/timesearch/blob/master/timesearch.py
If that's the only 0kb file, then copy-pasting this code back into the file should work. If any other files look broken, you can always re-download everything from the main page.
This kind of thing tends to happen when using
>
in the command prompt, likeecho hello > timesearch.py
will put the world hello into the file but delete everything else. Since my readme file uses> timesearch.py
to visually represent the command prompt, I can see how this would easily cause confusion and create problems. I will make the readme more clear. Thank you for opening this issue.
Seems like it worked! Thanks for the quick responses and the amazing tool, Good day.
from timesearch.
Related Issues (19)
- Proxy HOT 6
- received 400 HTTP response HOT 9
- insert_filler missing 1 required positional argument HOT 7
- AttributeError: 'DummySubmission' object has no attribute 'url' on some subreddits HOT 2
- import timesearch_modules error HOT 3
- get_submissions doesn't work for some subreddits HOT 4
- new error since today for comment download
- New issue with praw HOT 2
- 404 for https://api.pushshift.io/meta HOT 7
- parent_id attribute for comments from pushshift API
- Recovering from exception HOT 2
- dont work no more any way around with local dumps?? HOT 4
- Getting deleted posts/comments? HOT 4
- Offline Reading <> Invalidates HTML HOT 3
- Missing license HOT 1
- No module named 'bot4' HOT 2
- Offline reading HOT 9
- x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timesearch.