From 688f9d9b6b66c45a9e1fe3ac67fedcf59525a9c7 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 00:43:19 +0530 Subject: [PATCH 1/8] added logo and link --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b0a11bd..efb2553 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # TrueCallerScraper +image TrueCallerScraper is a Python script that automates the extraction of profile names from the TrueCaller app using ADB (Android Debug Bridge) and OCR (Optical Character Recognition). @@ -27,7 +28,7 @@ To run this script, you need to have the following tools and packages installed: pip install -r requirements.txt ``` -3. Ensure that ADB (Android Debug Bridge) is properly installed and set up on your machine. If you haven't installed ADB yet, you can refer to external sources like XDA Developers for detailed instructions on installing ADB for your specific operating system. +3. Ensure that ADB (Android Debug Bridge) is properly installed and set up on your machine. If you haven't installed ADB yet, you can refer to external sources like [XDA Developers for detailed instructions](https://www.xda-developers.com/install-adb-windows-macos-linux/) on installing ADB for your specific operating system. Note: Setting up ADB is outside the scope of this guide, and it's important to have ADB properly installed and configured before running the TrueCallerScraper script. @@ -55,4 +56,4 @@ The script will enter phone numbers, search on TrueCaller, capture screenshots, 3. Adding additional functionalities or error handling based on your requirements. ## Contribution -Contributions to this project are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or submit a pull request. \ No newline at end of file +Contributions to this project are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or submit a pull request. From a91dc8fc9fc53fd0e6e2617d0287b3b30dabd3a6 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 00:44:16 +0530 Subject: [PATCH 2/8] logo size change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efb2553..8f2e4f2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # TrueCallerScraper -image +image TrueCallerScraper is a Python script that automates the extraction of profile names from the TrueCaller app using ADB (Android Debug Bridge) and OCR (Optical Character Recognition). From bcc56ea3ed2f510c521a868f42176fec03ad8a46 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:07:14 +0530 Subject: [PATCH 3/8] VIdeo added --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8f2e4f2..975e007 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ Note: Setting up ADB is outside the scope of this guide, and it's important to h ## Usage +[Watch the TrueCallerScraper Demo Video](https://youtu.be/oKsOD9bKexw) + 1. Connect your Android device to your computer and ensure that USB debugging is enabled. 2. Open the TrueCaller app on your Android device and navigate to the desired chat or search page. From c17a9e8cb1f510b7fcd9911968ad1fc3a89f3a5e Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:01:59 +0530 Subject: [PATCH 4/8] Create python-app.yml --- .github/workflows/python-app.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..f3d4fca --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest From 78a695189c56e2942b2c3c0f61093d52248cf9e0 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:04:22 +0530 Subject: [PATCH 5/8] Create python-publish.yml --- .github/workflows/python-publish.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..bdaab28 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,39 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} From fa1342c5d7186f5502050c5363f30eb9c9e6a779 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:05:26 +0530 Subject: [PATCH 6/8] Removed PyTest --- .github/workflows/python-app.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f3d4fca..3544ab2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -34,6 +34,3 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest From e6136d11c415bd81072df1e6b1d8a0c5aed5a8f4 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:39:06 +0530 Subject: [PATCH 7/8] Create astro.yml --- .github/workflows/astro.yml | 88 +++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 .github/workflows/astro.yml diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml new file mode 100644 index 0000000..cc5117e --- /dev/null +++ b/.github/workflows/astro.yml @@ -0,0 +1,88 @@ +# Sample workflow for building and deploying an Astro site to GitHub Pages +# +# To get started with Astro see: https://docs.astro.build/en/getting-started/ +# +name: Deploy Astro site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +env: + BUILD_PATH: "." # default value when not using subfolders + # BUILD_PATH: subfolder + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT + exit 0 + else + echo "Unable to determine package manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json + - name: Setup Pages + id: pages + uses: actions/configure-pages@v3 + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + working-directory: ${{ env.BUILD_PATH }} + - name: Build with Astro + run: | + ${{ steps.detect-package-manager.outputs.runner }} astro build \ + --site "${{ steps.pages.outputs.origin }}" \ + --base "${{ steps.pages.outputs.base_path }}" + working-directory: ${{ env.BUILD_PATH }} + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ${{ env.BUILD_PATH }}/dist + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 From aa06cf97cab7a71476ac9feefc36e6372c1fc226 Mon Sep 17 00:00:00 2001 From: Anuj Rawat <37796611+ajtazer@users.noreply.github.com> Date: Tue, 13 Jun 2023 14:05:37 +0530 Subject: [PATCH 8/8] added credentials --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bdaab28..92e5d2b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -35,5 +35,5 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: - user: __token__ + user: ajtazer password: ${{ secrets.PYPI_API_TOKEN }}