bosondata / chrome-prerender

Render JavaScript-rendered page as HTML/PDF/mhtml/png/jpeg using Headless Chrome
MIT License
165 stars 20 forks source link

Subdirs in S3 storage is always same #23

Closed Nyoroon closed 6 years ago

Nyoroon commented 6 years ago

Subdirs in S3 storage is always same. (first 4 chars of url is always http)

        hex_name = codecs.encode(url.encode('utf-8'), 'hex').decode('utf-8')
        sub_dir = os.path.join(hex_name[:2], hex_name[2:4])

Maybe make hash of URL or take URI instead of URL?

messense commented 6 years ago

Thank you for reporting this, would you like to fix it?

Nyoroon commented 6 years ago

Okay, i'll try.