Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aborruso committed Nov 2, 2024
1 parent e33a91b commit 90d42bb
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
38 changes: 38 additions & 0 deletions scrape-linux-x86_64.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['scrape_cli/scrape.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='scrape-linux-x86_64',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
2 changes: 1 addition & 1 deletion scrape_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from scrape_cli.scrape import main

__version__ = "1.1"
__version__ = "1.1.1"
__author__ = "Andrea Borruso"
__author_email__ = "[email protected]"

Expand Down
2 changes: 1 addition & 1 deletion scrape_cli/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main():

expression = [e if e.startswith('//') else GenericTranslator().css_to_xpath(e) for e in args.expression]

html_parser = etree.HTMLParser(encoding='utf-8', recover=True, strip_cdata=True)
html_parser = etree.HTMLParser(encoding='utf-8', recover=True)

inp = open(args.file, 'rb') if args.file else args.html
if args.rawinput:
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# setup.py
from setuptools import setup
from pathlib import Path

# Leggi il README
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")

setup(
name="scrape-cli",
version="1.1",
version="1.1.1",
description="It's a command-line tool to extract HTML elements using an XPath query or CSS3 selector.",
long_description=long_description,
long_description_content_type="text/markdown", # Specifica formato Markdown
author="Andrea Borruso",
author_email="[email protected]",
url="https://github.com/aborruso/scrape-cli",
Expand Down

0 comments on commit 90d42bb

Please sign in to comment.