Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Version 0.2.0 #9

Merged
merged 2 commits into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.md
20 changes: 20 additions & 0 deletions bin/urlfinder
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python3

import urlfinderlib
import sys

if __name__ == '__main__':
try:
file_path = sys.argv[1]
except:
print('Usage: urlfinder /path/to/file')
sys.exit(1)

try:
with open(file_path, 'rb') as f:
urls = sorted(list(set(urlfinderlib.find_urls(f.read()))))
for url in urls:
print(url)
except:
print('Usage: urlfinder /path/to/file')
sys.exit(1)
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.1.2',
version='0.2.0',

description='Library to find URLs and check their validity.',
long_description=long_description,
long_description_content_type='text/markdown',

# The project's main homepage.
url='https://github.com/IntegralDefense/urlfinderlib',
Expand Down Expand Up @@ -94,6 +95,8 @@
#'sample': ['package_data.dat'],
},

scripts=['bin/urlfinder'],

# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages. See:
# http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
Expand Down