mirror of
https://gh.wpcy.net/https://github.com/SoloSynth1/wordpress-scraper.git
synced 2026-04-24 18:46:40 +08:00
12 lines
264 B
Python
12 lines
264 B
Python
import argparse
|
|
|
|
from wpscraper.session import DefaultCrawlSession
|
|
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("url")
|
|
args = parser.parse_args()
|
|
|
|
session = DefaultCrawlSession(args.url)
|
|
session.execute()
|