Skip to content

Commit 2878e99

Browse files
committed
feat: Release v0.0.8 with new features and improvements
- Updated GitHub Actions workflow to extract version from pyproject.toml and create .deb package. - Added .deb package for Debian-based Linux systems, enhancing installation experience. - Introduced new CLI command `awv` for pip users, allowing easier access. - Improved auto-scroll functionality to simulate human-like behavior. - Updated README and CHANGELOG to reflect new features and usage instructions. - Removed setup.py in favor of pyproject.toml for package management. - Added new index.html and index.css for project documentation. - Implemented JavaScript for download button countdown and OS detection. - Updated .gitignore to include new build artifacts and directories. - Added MANIFEST.in to include README and LICENSE in the package.
1 parent 611b16d commit 2878e99

File tree

17 files changed

+199
-147
lines changed

17 files changed

+199
-147
lines changed

.github/workflows/buildpypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish to PyPI
33
on:
44
push:
55
paths:
6-
- 'awv.py'
6+
- 'awv/awv.py'
77
branches:
88
- main # Runs on every push to main
99

.github/workflows/pageupdate.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- main
7+
- dev
88
paths:
9-
- setup.py
10-
9+
- pyproject.toml
10+
1111
permissions:
1212
contents: write
1313

@@ -24,22 +24,23 @@ jobs:
2424
with:
2525
python-version: 3.x
2626

27-
- name: Get version from setup.py
27+
- name: Get version from pyproject.toml
2828
id: get_version
2929
run: |
30-
VERSION=$(python3 -c "import re; f=open('setup.py').read(); print(re.search(r'version\s*=\s*[\"\\'](.+?)[\"\\']', f).group(1))")
30+
VERSION=$(python3 -c "import re; f=open('pyproject.toml').read(); print(re.search(r'version\s*=\s*[\"\\'](.+?)[\"\\']', f).group(1))")
3131
echo "version=$VERSION" >> $GITHUB_OUTPUT
3232
3333
- name: Update download links in HTML
3434
run: |
3535
VERSION="${{ steps.get_version.outputs.version }}"
36-
sed -i "s|https://github.com/nayandas69/auto-website-visitor/releases/download/.*/Auto.Website.Visitor.exe.exe|https://github.com/nayandas69/auto-website-visitor/releases/download/${VERSION}/Auto.Website.Visitor.exe.exe|g" docs/index.html
37-
sed -i "s|https://github.com/nayandas69/auto-website-visitor/releases/download/.*/awv-linux.tar.gz|https://github.com/nayandas69/auto-website-visitor/releases/download/${VERSION}/awv-linux.tar.gz|g" docs/index.html
36+
sed -i "s|https://github.com/nayandas69/auto-website-visitor/releases/download/.*/awv.exe|https://github.com/nayandas69/auto-website-visitor/releases/download/${VERSION}/awv.exe|g" index.html
37+
sed -i "s|https://github.com/nayandas69/auto-website-visitor/releases/download/.*/awv-linux.tar.gz|https://github.com/nayandas69/auto-website-visitor/releases/download/${VERSION}/awv-linux.tar.gz|g" index.html
38+
sed -i "s|https://github.com/nayandas69/auto-website-visitor/releases/download/.*/auto-website-visitor_.*_amd64.deb|https://github.com/nayandas69/auto-website-visitor/releases/download/${VERSION}/auto-website-visitor_${VERSION}_amd64.deb|g" index.html
3839
39-
- name: Commit and push changes to main
40+
- name: Commit and push changes to dev
4041
run: |
4142
git config --global user.name "github-actions[bot]"
4243
git config --global user.email "github-actions[bot]@users.noreply.github.com"
43-
git add docs/index.html
44+
git add index.html
4445
git commit -m "Update download links to version ${{ steps.get_version.outputs.version }}" || echo "No changes to commit"
45-
git push origin main
46+
git push origin dev

.github/workflows/releasetags.yml

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
paths:
7-
- 'awv.py'
7+
- 'awv/awv.py'
88
branches:
99
- main
1010

@@ -26,18 +26,17 @@ jobs:
2626
with:
2727
python-version: '3.10'
2828

29-
- name: Extract version from setup.py
29+
- name: Extract version from pyproject.toml
3030
id: get_version
3131
run: |
32-
VERSION=$(python setup.py --version)
32+
VERSION=$(python -c "import re; f=open('pyproject.toml').read(); print(re.search(r'version\s*=\s*[\"\\'](.+?)[\"\\']', f).group(1))")
3333
echo "Project version: $VERSION"
3434
echo "version=$VERSION" >> $GITHUB_OUTPUT
3535
3636
- name: Check if Git tag exists
3737
id: tag_check
3838
run: |
3939
if git rev-parse "${{ steps.get_version.outputs.version }}" >/dev/null 2>&1; then
40-
echo "Tag already exists. Skipping."
4140
echo "tag_exists=true" >> $GITHUB_OUTPUT
4241
else
4342
echo "tag_exists=false" >> $GITHUB_OUTPUT
@@ -46,32 +45,54 @@ jobs:
4645
- name: Create Git tag
4746
if: steps.tag_check.outputs.tag_exists == 'false'
4847
run: |
49-
git config user.name "github-actions"
50-
git config user.email "github-actions@github.com"
48+
git config user.name "github-actions[bot]"
49+
git config user.email "github-actions[bot]@users.noreply.github.com"
5150
git tag -a "${{ steps.get_version.outputs.version }}" -m "Release v${{ steps.get_version.outputs.version }}"
5251
git push origin "${{ steps.get_version.outputs.version }}"
5352
5453
- name: Install dependencies and PyInstaller
55-
run: pip install --upgrade pip && pip install -r requirements.txt pyinstaller
54+
run: |
55+
pip install --upgrade pip
56+
pip install -r requirements.txt pyinstaller
5657
57-
- name: Build Linux binary with PyInstaller spec
58+
- name: Build Linux binary with PyInstaller
5859
run: |
5960
pyinstaller awv.spec
6061
mkdir awv-linux
6162
cp dist/awv awv-linux/awv
6263
cp AUTHOR.rst LICENSE awv-linux/
6364
tar -czvf awv-linux.tar.gz -C awv-linux .
6465
66+
- name: Create .deb package
67+
run: |
68+
mkdir -p awv-deb/usr/local/bin
69+
mkdir -p awv-deb/DEBIAN
70+
cp dist/awv awv-deb/usr/local/bin/awv
71+
72+
VERSION="${{ steps.get_version.outputs.version }}"
73+
echo "Package: auto-website-visitor" > awv-deb/DEBIAN/control
74+
echo "Version: $VERSION" >> awv-deb/DEBIAN/control
75+
echo "Section: utils" >> awv-deb/DEBIAN/control
76+
echo "Priority: optional" >> awv-deb/DEBIAN/control
77+
echo "Architecture: amd64" >> awv-deb/DEBIAN/control
78+
echo "Depends: python3" >> awv-deb/DEBIAN/control
79+
echo "Maintainer: nayandas69" >> awv-deb/DEBIAN/control
80+
echo "Description: Auto Website Visitor - automate browser visits to websites." >> awv-deb/DEBIAN/control
81+
82+
dpkg-deb --build awv-deb
83+
mv awv-deb.deb awv-linux/auto-website-visitor_${VERSION}_amd64.deb
84+
6585
- name: Upload Linux release asset
6686
uses: softprops/action-gh-release@v2
6787
with:
6888
tag_name: "${{ steps.get_version.outputs.version }}"
6989
name: "Release v${{ steps.get_version.outputs.version }}"
7090
body: |
71-
We changed some things in the code, so we decided to release a new version.
72-
Please check the [CHANGELOG](CHANGELOG.md) for more details.
73-
files: awv-linux.tar.gz
74-
91+
New features and improvements are included in this version. Download assets below.
92+
[CHANGELOG](CHANGELOG.md)
93+
files: |
94+
awv-linux.tar.gz
95+
awv-linux/auto-website-visitor_${{ steps.get_version.outputs.version }}_amd64.deb
7596
env:
7697
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7798

@@ -89,18 +110,17 @@ jobs:
89110
python-version: '3.10'
90111

91112
- name: Install dependencies and PyInstaller
92-
run: pip install --upgrade pip && pip install -r requirements.txt pyinstaller
113+
run: |
114+
pip install --upgrade pip
115+
pip install -r requirements.txt pyinstaller
93116
94117
- name: Build Windows EXE using PyInstaller spec
95118
run: pyinstaller awv.spec
96119

97-
- name: Rename Windows executable
98-
run: Rename-Item -Path "dist/awv.exe" -NewName "Auto Website Visitor.exe"
99-
100120
- name: Upload Windows release asset
101121
uses: softprops/action-gh-release@v2
102122
with:
103123
tag_name: "${{ needs.linux-build.outputs.version }}"
104-
files: dist/Auto Website Visitor.exe
124+
files: dist/awv.exe
105125
env:
106126
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
# Python bytecode files
2-
*.pyc
3-
*.pyo
4-
*.pyd
1+
# Python cache and virtualenv
52
__pycache__/
6-
7-
# Virtual environment directories
3+
*.py[cod]
4+
*.egg-info/
85
.venv/
96

10-
# Windows system files
11-
Thumbs.db
12-
13-
# Logs
14-
*.log
15-
16-
# Distribution / packaging
17-
*.egg
18-
*.egg-info/
19-
dist/
7+
# Build artifacts
208
build/
9+
dist/
10+
*.egg
11+
*.whl
2112
*.tar.gz
22-
*.zip
13+
*.deb

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@
44
55
---
66

7+
## **[0.0.8]***2025-05-12*
8+
9+
### New Features & Improvements
10+
11+
- **`.deb` Package Released**
12+
A `.deb` package is now available for Debian-based Linux systems (Ubuntu, Kali, etc.), providing a smoother and more integrated installation experience.
13+
🔗 [Download the latest release](https://github.com/nayandas69/auto-website-visitor/releases/latest)
14+
15+
```bash
16+
sudo dpkg -i auto-website-visitor_<version>_amd64.deb
17+
```
18+
19+
* **New CLI Command: `awv` (for pip users)**
20+
Users installing the package via `pip` can now use the shorter `awv` command in addition to the full `auto-website-visitor`:
21+
22+
```bash
23+
awv --help
24+
```
25+
26+
* **Improved Command Support**
27+
Both `auto-website-visitor` and `awv` commands are now interchangeable for CLI usage.
28+
29+
---
30+
731
## **[0.0.7]***2025-04-21*
832

933
### **New Browser Support**

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md
2+
include LICENSE

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ sudo apt install microsoft-edge-stable -y
8888
> Edge is mostly recommended on Windows.
8989
> For Linux, Chrome and Firefox work best.
9090
91-
## Prebuilt EXE & Linux Binary
91+
## EXE, Linux Binary & .deb package
9292

9393
> [!WARNING]
94-
> Check the **latest release assets** section to download the ready-to-use prebuilt files.
94+
> Check the **latest release assets** section to download the ready-to-use files.
9595
9696
### For Windows
9797

98-
- Download `Auto.Website.Visitor.exe` from the release
98+
- Download `awv.exe` from the release
9999
- Double click to launch
100100
- Follow on-screen prompts
101101

@@ -107,9 +107,17 @@ sudo chmod +x awv
107107
./awv
108108
```
109109

110+
### For Debain-based Linux
111+
112+
```bash
113+
sudo dpkg -i auto-website-visitor_<version>_amd64.deb
114+
```
115+
> Replace `<version>` with the actual version number of the downloaded package.
116+
> This also adds the `awv` command globally on your system.
117+
110118
## Visit Our AWV Web Portal
111119

112-
Check it out here:
120+
Check it out here only for latest updates version:
113121
[Click](https://nayandas69.github.io/auto-website-visitor)
114122

115123
> [!TIP]

awv.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
a = Analysis(
5-
['awv.py'],
5+
['awv/awv.py'],
66
pathex=[],
77
binaries=[],
88
datas=[],

awv/__init__.py

Whitespace-only changes.

awv.py renamed to awv/awv.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
#!/usr/bin/env python3
2+
# awv.py
3+
14
# -------------------------------------
25
# Auto Website Visitor
3-
# Version: 0.0.7
6+
# Version: 0.0.8
47
# Author: nayandas69
58
# Website: https://nayandas69.github.io/link-in-bio
69
# Email: nayanchandradas@hotmail.com
710
# Description: A simple script to automate website visits using Selenium WebDriver.
811
# This script allows users to specify a website URL, the number of visits, the interval between visits,
912
# and the browser to use. It also supports headless mode, proxy usage, and auto-scrolling.
1013
# License: MIT License
11-
# Last Updated: 2025-04-21
14+
# Last Updated: 2025-5-12
1215
# -------------------------------------
1316

1417

@@ -41,7 +44,7 @@
4144
LATEST_RELEASE_API = (
4245
"https://api.github.com/repos/nayandas69/auto-website-visitor/releases/latest"
4346
)
44-
CURRENT_VERSION = "0.0.7"
47+
CURRENT_VERSION = "0.0.8"
4548
CACHE_DIR = os.path.expanduser("~/.browser_driver_cache")
4649
MIN_INTERVAL_SECONDS = 1
4750
LOG_DIR = "logs"

0 commit comments

Comments
 (0)