Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62028
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: New to Python, Help to get script working? |
| Date | 2013-12-16 09:28 +0000 |
| References | (6 earlier) <714fc5b8-6c85-4de3-8c0a-1a43d791f139@googlegroups.com> <34827ea0-7bec-41a8-baf9-587e2503fff8@googlegroups.com> <e4781412-f77a-49b0-8399-c870bd9388be@googlegroups.com> <179cce6f-06e5-4cfa-a746-be6ff006a058@googlegroups.com> <4c2822b4-d95c-4735-af12-55ac5ff2fa6e@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4190.1387186112.18130.python-list@python.org> (permalink) |
On 16/12/2013 08:02, Mark wrote: The record for double spaced google crap, congratulations. Mind you, it's a great new game this, Spot the Text, much better than I Spy!!! > On Monday, December 16, 2013 2:55:23 AM UTC-5, Mark wrote: >> On Monday, December 16, 2013 2:52:05 AM UTC-5, Mark wrote: >> >>> On Monday, December 16, 2013 2:48:56 AM UTC-5, Mark wrote: >> >>> >> >>>> On Monday, December 16, 2013 2:43:45 AM UTC-5, Mark wrote: >> >>> >> >>>> >> >>> >> >>>>> On Monday, December 16, 2013 2:09:38 AM UTC-5, Mark wrote: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> On Sunday, December 15, 2013 9:33:17 PM UTC-5, Chris Angelico wrote: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> On Mon, Dec 16, 2013 at 12:37 PM, Steven D'Aprano >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> <steve+comp.lang.python@pearwood.info> wrote: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>> Step 1: replace the modified version of the script with a known good copy. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> Actually, this might be where the problem is, unfortunately. Not the >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> OP's fault at all. I went and looked at the post linked to, and it has >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> buggy indentation. (Quite possibly indicates that the author has >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> two-space tabs, and didn't notice a bug slipping in. I dunno.) >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> Along the way, though, I learned that the script in question is >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> entirely for generating fake twitch.tv viewers so as to get your >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> stream highlighted fraudulently, so I'm rather less inclined to help. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> Got a legitimate use for this, or are you just trying to cheat your >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> way to fame? >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>> ChrisA >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> Thanks for the reply, the answer is yes and no, i already have about 2400 followers and half mil views, i just wanted to see if i could get it to work. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> So after taking everybody's advice, fixed the indentation as mentioned by the expert above. :) After, this is what i came up with >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> Traceback (most recent call last): >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> File "C:\Python27\Scripts\Twitch.py", line 9, in <module> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> numberOfViewers = int(sys.argv[1]) >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> IndexError: list index out of range >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> Is this where i would plug in the variables to make it work? I'm not quite sure about how you would plug in those numbers >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> okay so i kinda get it now, running it in cmd, i use the following command - >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> python twitch.py 10 10. I am running it within the scripts directory. >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> I get the following error in cmd: >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> Syntax Error: invalid syntax >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>>>>> python twitch.py 10 10 >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> File "<stdin> line 1 >> >>> >> >>>> >> >>> >> >>>>> >> >>> >> >>>> >> >>> >> >>>>> python twitch.py 10 10 >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> is there a more effecient way of doing this? I just hold shift and right click to run cmd from the folder, >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> >> >>> >> >>>> File is located in C:\Python27\Scripts >> >>> >> >>> >> >>> >> >>> It was my understanding that you need to meet the arguments by running the in cmd with the numbers after? I am sorry to show my true noobyness and really appreciate the help. >> >> >> >> Here is a link to the actual file, maybe you can look at it and see if it looks good? Should i change anything else in the file to make it work theoretically or is it all done when you run it? >> >> >> >> http://www.mediafire.com/view/3m10s9rwvatxd96/twitch.py > > If i just try to double click the script, i get an index error, i can barely see the window it disappears so fast, but thats what I see. > -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-14 20:51 -0800
Re: New to Python, Help to get script working? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-15 05:03 +0000
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-15 16:06 +1100
Re: New to Python, Help to get script working? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-15 15:25 +0000
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 13:19 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 13:31 -0800
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 09:10 +1100
Re: New to Python, Help to get script working? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-16 01:37 +0000
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 13:33 +1100
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:09 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:43 -0800
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 18:47 +1100
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:48 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:52 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-15 23:55 -0800
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-16 00:02 -0800
Re: New to Python, Help to get script working? "Frank Millman" <frank@chagford.com> - 2013-12-16 10:38 +0200
Re: New to Python, Help to get script working? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-16 09:28 +0000
Re: New to Python, Help to get script working? Ned Batchelder <ned@nedbatchelder.com> - 2013-12-16 10:19 -0500
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-16 12:25 -0800
Re: New to Python, Help to get script working? rusi <rustompmody@gmail.com> - 2013-12-16 17:05 -0800
Re: New to Python, Help to get script working? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-16 21:05 -0500
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-17 03:05 -0800
Re: New to Python, Help to get script working? rusi <rustompmody@gmail.com> - 2013-12-17 09:13 -0800
Re: New to Python, Help to get script working? Chris Angelico <rosuav@gmail.com> - 2013-12-16 18:43 +1100
Re: New to Python, Help to get script working? Rick Johnson <rantingrickjohnson@gmail.com> - 2013-12-17 09:33 -0800
Re: New to Python, Help to get script working? Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-17 12:40 -0500
Re: New to Python, Help to get script working? Mark <markyshizzle@gmail.com> - 2013-12-18 14:46 -0800
csiph-web