From c782334470dd53d87b89c3ef15c408b4be218cad Mon Sep 17 00:00:00 2001 From: Lucas Alves Date: Fri, 8 Nov 2024 15:08:35 -0300 Subject: [PATCH 1/2] fix: removing encode utf8 in get_pdf_base64 --- pydoll/browser/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydoll/browser/page.py b/pydoll/browser/page.py index c58fdd01..4504b83a 100644 --- a/pydoll/browser/page.py +++ b/pydoll/browser/page.py @@ -174,7 +174,7 @@ async def get_pdf_base64(self): str: The PDF data of the page. """ response = await self._execute_command(PageCommands.print_to_pdf()) - return response['result']['data'].encode('utf-8') + return response['result']['data'] async def print_to_pdf(self, path: str): """ From adb6fed7c58a9de9d1ec3f8b0ec4cc5e6fe92fd6 Mon Sep 17 00:00:00 2001 From: Lucas Alves Date: Fri, 8 Nov 2024 15:13:48 -0300 Subject: [PATCH 2/2] fix: addning new package version --- .github/workflows/release.yml | 26 +------------------------- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 574aca26..64af4628 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} @@ -25,30 +25,6 @@ jobs: - name: Print Version run: echo "Bumped to version ${{ steps.cz.outputs.version }}" - - name: Install Poetry - run: | - curl -sSL https://install.python-poetry.org | python3 - - export PATH="$HOME/.local/bin:$PATH" - - - name: Update Poetry version in pyproject.toml - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - poetry version "${{ steps.cz.outputs.version }}" - git add pyproject.toml - git commit -m "Update pyproject.toml to version ${{ steps.cz.outputs.version }}" - git push - - - name: Update poetry.lock - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - poetry lock - git add poetry.lock - git commit -m "Update poetry.lock for version ${{ steps.cz.outputs.version }}" - git push - - release: name: Release needs: version diff --git a/pyproject.toml b/pyproject.toml index c7346b57..4e855b80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydoll" -version = "0.2.0" +version = "0.3.1" description = "" authors = ["Thalison Fernandes "] readme = "README.md"