phillipsm / pyfav

pyfav is a simple Python library that helps you get a favicon for a supplied URL.
13 stars 13 forks source link

Python3 support #5

Open moltenkaizen opened 7 years ago

moltenkaizen commented 7 years ago

Would be nice to have Python3 support.

I've been able to use pyfav via 2to3 conversion.

Here is the output of the conversion:

2to3 -w pyfav.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored pyfav.py --- pyfav.py (original) +++ pyfav.py (refactored) @@ -33,8 +33,8 @@

-import urllib, os.path, string -from urlparse import urlparse +import urllib.request, urllib.parse, urllib.error, os.path, string +from urllib.parse import urlparse import requests from bs4 import BeautifulSoup

RefactoringTool: Files that were modified: RefactoringTool: pyfav.py

scottwernervt commented 6 years ago

For anyone that stumbles onto this repo, I created favicon due to this project being abandon.