Skip to content

Commit

Permalink
fixup! fix(extract_media): search all js files in data directory for …
Browse files Browse the repository at this point in the history
…URLs
  • Loading branch information
wzyboy committed Jul 30, 2023
1 parent 31ea479 commit 4ddfcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/extract_media/main.py
Expand Up @@ -23,7 +23,7 @@ class TwimgExtractor(scrapy.Spider):
name = 'TwimgExtractor'

def __init__(self, archive_dir: Path, output_dir: Path, **kwargs):
self.js_files = archive_dir.glob('data/*.js')
self.js_files = (archive_dir / 'data').rglob('*.js')
self.media_dir = archive_dir / 'data/tweets_media'
self.output_dir = output_dir
super().__init__(**kwargs)
Expand Down

0 comments on commit 4ddfcc5

Please sign in to comment.