This repository has been archived by the owner on Mar 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from aahnik/dev
Dev
- Loading branch information
Showing
10 changed files
with
155 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
autopep8==1.5.4 | ||
certifi==2020.6.20 | ||
chardet==3.0.4 | ||
idna==2.10 | ||
pycodestyle==2.6.0 | ||
PyYAML==5.3.1 | ||
requests==2.24.0 | ||
selenium==3.141.0 | ||
toml==0.10.1 | ||
urllib3==1.25.10 | ||
requests==2.24.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="wappdriver", | ||
version="0.2.6", | ||
version="0.2.7", | ||
license='MIT', | ||
author="Aahnik Daw", | ||
author_email="[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# PLease read the Documentation regarding testing, before attempting to test | ||
# this is a yaml file, so no need to enclose strings by double/single quotes | ||
|
||
# please make sure to change the values of the parameters before testing | ||
|
||
absolute_WhatsApp_Session_Folder_Path: | ||
# if not logged in, QR code will be displayed | ||
|
||
|
||
saved_contact: aahnik | ||
# case sensitive | ||
|
||
|
||
unsaved_contact: fakeNobody | ||
# name that is not saved | ||
# this is required for checking whether the program successfully raises | ||
# wappdriver error for UnknownContact | ||
|
||
|
||
# note: | ||
# the media at the paths you provide below, will be send to the saved_contact specified above | ||
|
||
|
||
absolute_ImagePath: path/to/ | ||
# the absolute path to any image on your computer | ||
|
||
|
||
absolute_VideoPath: path/to/ | ||
# the absolute path to any Video on your computer | ||
|
||
|
||
absolute_GIFPath: path/to/ | ||
# the absolute path to any GIF on your computer | ||
|
||
|
||
absolute_PDFPath: path/to/ | ||
# the absolute path to any PDF on your computer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
TODO: fill instructions | ||
Don't tamper this file. | ||
Some dynamic variables fetched from the internet will be stored here. | ||
Read Documentation for more details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
0 | ||
TODO: fill instructions | ||
The first line must be zero initially | ||
Dont tamper. | ||
To be used by program only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
def first_time_set_up(up): | ||
print("\n Thank You for using wapp-driver. Welcome !! ") | ||
from . import update | ||
from pyfiglet import Figlet | ||
|
||
def first_time_set_up(): | ||
f = Figlet(font='big') | ||
print(f.renderText('wapp')) | ||
print(f.renderText('driver')) | ||
|
||
print( | ||
"\n You have to enter the Chrome Driver Path once: only for the first time") | ||
up.update_cdp() | ||
update.update_cdp() | ||
print("Sucessfully Saved") | ||
up.fetch_vars() | ||
print("Latest values of Dynamic Variables fetched from internet !\n") | ||
print("If you want to change Chrome Driver Path or update Dynamic Variables") | ||
print(" then please visit aahnik.github.io/wappdriver ") | ||
|
||
update.fetch_vars() | ||
|
||
|
||
def convey(error, message): | ||
print(f"\n {message} \n") | ||
print(f'\n{error}\n') | ||
print("\n For help visit aahnik.github.io/wappdriver ") | ||
|