Permalink
Browse files

renamed file, added license

  • Loading branch information...
1 parent ccf9620 commit a7da652efaf6627d26a35c3d4890fe8e500f962b Steven Lehrburger committed Apr 5, 2011
Showing with 27 additions and 6 deletions.
  1. +21 −0 LICENSE
  2. +6 −6 okc_dl.py → okc_arrow_fetcher.py
View
21 LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2011 by Steven Lehrburger
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
12 okc_dl.py → okc_arrow_fetcher.py
@@ -37,7 +37,7 @@ def __str__(self):
)
-class CupidFetcher:
+class ArrowFetcher:
base_url = 'http://www.okcupid.com'
sleep_duration = 0 # time to wait after each HTTP request
@@ -173,11 +173,11 @@ def main():
if not options.filename:
print "Please specify the destination file with either '-f' or '--filename'"
if options.username and options.password and options.filename:
- cf = CupidFetcher(options.username, options.password)
- cf.queue_threads()
- cf.dedupe_threads()
- cf.fetch_threads()
- cf.write_messages(options.filename)
+ arrow_fetcher = ArrowFetcher(options.username, options.password)
+ arrow_fetcher.queue_threads()
+ arrow_fetcher.dedupe_threads()
+ arrow_fetcher.fetch_threads()
+ arrow_fetcher.write_messages(options.filename)
if __name__ == '__main__':
main()

0 comments on commit a7da652

Please sign in to comment.