convert dl.py to beautifulsoup