' within a document whose URL is
3729 | # `foo'. It may handle such links differently, although practical differences
3730 | # would appear only if the document containing them resulted from a POST
3731 | # request or had a no-cache flag set. This feature attempts to interpret
3732 | # URL-references as suggested by RFC 2396, and to prevent mistaken
3733 | # resubmissions of form content with the POST method. An alternate opinion
3734 | # asserts that the feature could actually result in inappropriate resubmission
3735 | # of form content.
3736 | #TRACK_INTERNAL_LINKS:FALSE
3737 |
3738 | .h1 HTML Parsing
3739 |
3740 | .h2 DONT_WRAP_PRE
3741 | # Inhibit wrapping of text when -dump'ing and -crawl'ing, mark
3742 | # wrapped lines of in interactive session.
3743 | #DONT_WRAP_PRE:FALSE
3744 |
3745 | .h2 FORCE_HTML
3746 | # When true, this forces the first document specified on the command-line
3747 | # to be interpreted as HTML.
3748 | #FORCE_HTML:FALSE
3749 |
3750 | .h2 HIDDENLINKS
3751 | # Control the display of hidden links, using one of the following names:
3752 | #
3753 | # MERGE
3754 | # hidden links show up as bracketed numbers and are numbered
3755 | # together with other links in the sequence of their occurrence
3756 | # in the document.
3757 | #
3758 | # LISTONLY
3759 | # hidden links are shown only on L)ist screens and listings
3760 | # generated by -dump or from the P)rint menu, but appear
3761 | # separately at the end of those lists. This is the default
3762 | # behavior.
3763 | #
3764 | # IGNORE
3765 | # hidden links do not appear even in listings.
3766 | #
3767 | #HIDDENLINKS:LISTONLY
3768 |
3769 | .h1 Appearance
3770 | .h2 SHORT_URL
3771 | # If true, show very long URLs in the status line with "..." to represent the
3772 | # portion which cannot be displayed. The beginning and end of the URL are
3773 | # displayed, rather than suppressing the end.
3774 | #SHORT_URL:FALSE
3775 |
3776 | .h1 Dump/Crawl
3777 | .h2 LISTONLY
3778 | # For -dump, show only the list of links.
3779 | #LISTONLY:FALSE
3780 |
3781 | .h2 LIST_INLINE
3782 | # For -dump, show the links inline with the text.
3783 | #LIST_INLINE:FALSE
3784 |
3785 | .h2 LOCALHOST
3786 | # When true, this disables URLs that point to remote hosts.
3787 | #LOCALHOST:FALSE
3788 |
3789 | .h2 WITH_BACKSPACES
3790 | # Emit backspaces in output if -dump'ing or -crawl'ing (like 'man' does).
3791 | #WITH_BACKSPACES:FALSE
3792 |
3793 | .h1 Internal Behavior
3794 | .h2 HTTP_PROTOCOL
3795 | # Normally Lynx negotiates HTTP/1.0, because it does not support chunked
3796 | # transfer (a requirement for all HTTP/1.1 clients), although it supports
3797 | # several other features of HTTP/1.1. You may encounter a server which does
3798 | # not support HTTP/1.0 which can be used by switching to the later protocol.
3799 | #HTTP_PROTOCOL:1.0
3800 |
3801 | .h2 GUESS_SCHEME
3802 | # When true, Lynx may fill in a missing "scheme" for URIs which you provide.
3803 | # This is different from URL_DOMAIN_PREFIXES and URL_DOMAIN_SUFFIXES.
3804 | #
3805 | # If no "scheme" (such as "http:", "ftp:") is given in a URI, Lynx first checks
3806 | # if there is a corresponding local file which can be accessed directly.
3807 | # Failing that, Lynx may inspect the URI to see if it begins with a prefix
3808 | # which implies a scheme.
3809 | #
3810 | # Lynx uses these schemes for the corresponding prefixes:
3811 | #
3812 | # cso:
3813 | # "cso."
3814 | # "ns."
3815 | # "ph."
3816 | # ftp:
3817 | # "ftp."
3818 | # gopher:
3819 | # "gopher."
3820 | # http:
3821 | # "www".
3822 | # news:
3823 | # "news."
3824 | # nntp:
3825 | # "nntp."
3826 | # wais:
3827 | # "wais."
3828 | #
3829 | # The default value FALSE disables this guess, telling Lynx to just assume that
3830 | # "http:" was intended.
3831 | #GUESS_SCHEME:FALSE
3832 |
--------------------------------------------------------------------------------
/tweetbot.py:
--------------------------------------------------------------------------------
1 | import os
2 | import time
3 | from random import *
4 | os.system("chmod +x greet")
5 | os.system("bash greet")
6 | while True:
7 | print("\nEnter Your username/Phone :")
8 | user=input().strip()
9 | print("\nEnter Your Password :")
10 | pas=input().strip()
11 | print("\nEnter Tweet List File Path")
12 | path=input().strip()
13 | print("\nEnter Additional Things to Put Like #SpeedX or @SpeedX")
14 | add=input().strip()
15 | print("\nEnter Delay Between Tweets (in milliseconds) (1000 ms = 1 s)")
16 | delay=int(input())
17 | print("Your Twitter Username : \""+user+"\"")
18 | print("\nYour Twitter Password : \""+pas+"\"")
19 | print("\nFile Containing Tweets : \""+path+"\"")
20 | print("\nAdd Text : \""+add+"\" To Each Tweet")
21 | print("\nDelay Between 2 Tweets : \""+str(delay)+"\"")
22 | print("\nPress Y To Continue...\nPres N To Edit...")
23 | ch=input().strip()
24 | if (ch.find('y') != -1 or ch.find('Y') != -1):
25 | break
26 | print("\n\n\nLogging in...")
27 | f=open("init","w")
28 | s1="# Command logfile created by Lynx 2.8.9rel.1 SpeedX\n# Arg0 = lynx\n# Arg1 = http://mobile.twitter.com/session/new\n# Arg2 = -cmd_log=init"
29 | s1=s1+"\nkey Down Arrow\nkey Down Arrow"
30 | s2=""
31 | s3=""
32 | for s in user:
33 | s2=s2+"\nkey "+s
34 | for s in pas:
35 | s3=s3+"\nkey "
36 | if s == ' ':
37 | s3=s3+""
38 | else:
39 | s3=s3+s
40 | s3=s3+"\nkey Down Arrow\nkey Right Arrow"
41 | f.write(s1)
42 | f.write(s2)
43 | f.write("\nkey Down Arrow")
44 | f.write(s3)
45 | f.write("\nkey q\nkey y")
46 | f.close()
47 | os.system("lynx http://mobile.twitter.com/session/new -cmd_script=init")
48 | print("\nLogged in Successfully!!")
49 | print("\nLoading Tweet List...")
50 | f=open(path,"r")
51 | t=f.read()
52 | f.close()
53 | tl=t.split("\n")
54 | print(str(len(tl))+" Tweets Loaded !!!")
55 | print("Starting To Tweet !!!")
56 | n=0
57 | first="\nkey Down Arrow\nkey Down Arrow\nkey Down Arrow\nkey Down Arrow\nkey Down Arrow\nkey Down Arrow\nkey Right Arrow\nkey Down Arrow\nkey Down Arrow"
58 | last="\nkey Down Arrow\nkey Down Arrow\nkey Down Arrow\nkey Down Arrow\nkey Right Arrow\nkey q\nkey y"
59 | for tweet in tl:
60 | if tweet.strip() == "":
61 | continue
62 | n=n+1
63 | tweet=add+" "+tweet
64 | f1=open("tweetspeedx"+str(n),"w")
65 | f1.write("key Right Arrow")
66 | f1.write(first)
67 | for st in tweet:
68 | f1.write("\nkey ")
69 | if st == ' ':
70 | f1.write("")
71 | else:
72 | f1.write(st)
73 | f1.write(last)
74 | f1.close()
75 | os.system("lynx -cfg=./lynx.cfg http://mobile.twitter.com -cmd_script=tweetspeedx"+str(n))
76 | print("Tweet Number: "+str(n))
77 | print("Tweeted: "+tweet)
78 | os.system("rm tweetspeedx"+str(n))
79 | tdel=randint(0,delay/2)
80 | op=randint(0,100)
81 | if op%2==0:
82 | tdel=delay-tdel
83 | else:
84 | tdel=delay+tdel
85 | print("Pausing For "+str(tdel/1000.0)+" Seconds!!!")
86 | time.sleep(tdel/1000.0)
87 | print(str(n)+" Tweets Tweeted!!")
88 | print("Task Completed !!!")
89 | print("I am very Tired...\nPress Enter To Logout!!")
90 | input()
91 | f=open("logout","w")
92 | f.write("# Command logfile created by Lynx 2.8.9rel.1 SpeedX\n# Arg0 = lynx\n# Arg1 = http://mobile.twitter.com/logout\n# Arg2 = -cmd_log=logout")
93 | f.write("\nkey Right Arrow\nkey Right Arrow\nkey q\nkey y")
94 | f.close()
95 | os.system("lynx http://mobile.twitter.com/logout -cmd_script=logout")
96 | os.system("bash greet")
97 | exit()
98 |
--------------------------------------------------------------------------------