@@ -15,21 +15,21 @@ def parse_args():
1515 'uploaded pastes in real-time to an SQLite database' \
1616 ' or as flat text files. Optionally archive trending' \
1717 ' pastes as well.' )
18- parser .add_argument ('-o' , '--output' , type = str , required = True ,
18+ parser .add_argument ('-o' , '--output' , type = str , required = True ,
1919 help = 'output SQLite database file or directory name if ' \
2020 '--output-format=flat-file' )
21- parser .add_argument ('-f' , '--output-format' , dest = 'output_format' , choices = ['sqlite' , 'flat-file' ],
21+ parser .add_argument ('-f' , '--output-format' , dest = 'output_format' , choices = ['sqlite' , 'flat-file' ],
2222 default = 'sqlite' , help = 'output format' )
2323 parser .add_argument ('-r' , '--rate' , type = int , default = 30 ,
2424 help = 'seconds between requests to the pastebin scrape API. minimum 1 second.' )
25- parser .add_argument ('-t' , '--trending' , dest = 'trending' , action = 'store_true' ,
25+ parser .add_argument ('-t' , '--trending' , dest = 'trending' , action = 'store_true' ,
2626 default = False , help = 'archive trending pastes (runs once per hour)' )
2727 parser .add_argument ('-m' , '--mirror' , dest = 'mirror' , action = 'store_true' ,
2828 help = 'archive pastebin in real-time using the scrape API. ' \
2929 'Requires a PRO LIFETIME account to whitelist your IP address.' )
3030 parser .add_argument ('-n' , '--no-mirror' , dest = 'mirror' , action = 'store_false' ,
3131 help = 'do not archive pastebin using the scrape API.' )
32- parser .add_argument ('-k' , '--api-key' , dest = 'api_key' , type = str , default = None ,
32+ parser .add_argument ('-k' , '--api-key' , dest = 'api_key' , type = str , default = None ,
3333 help = 'pastebin API key. only required with --trending option' )
3434 parser .add_argument ('-v' , '--version' , action = 'version' , version = '0.1.0' )
3535 parser .add_argument ('-q' , '--quiet' , dest = 'quiet' , action = 'store_true' , default = False ,
@@ -125,9 +125,6 @@ def archive_trending_pastes(last_archive_time, scraper, storage, quiet):
125125def main ():
126126 args = parse_args ()
127127
128- if not args .quiet :
129- print ("\n pastebin-mirror\n " , file = sys .stderr ) # this needs improving - placeholder for now
130-
131128 scraper = PastebinComScraper (args .api_key )
132129 if args .output_format == 'sqlite' :
133130 try :
0 commit comments