Skip to content

Commit 96798e3

Browse files
committed
full headless mode
1 parent bbf30e3 commit 96798e3

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a href="https://github.com/SilkePilon/youdotcom/"><img src="https://github.com/SilkePilon/youdotcom/blob/main/youdotcom.png?raw=true" alt="Markdownify" width="200"></a>
55
<br>
66
<br>
7-
YouDotCom for python v1.0.22
7+
YouDotCom for python v1.0.23
88
<br>
99
</h1>
1010

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "youdotcom"
8-
version = "1.0.22"
8+
version = "1.0.23"
99
description = "official api wrapper for you.com and all of its apps"
1010
readme = "README.md"
1111
authors = ["SilkePilon <[email protected]>"]

tests/test_example/test.py

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
from youdotcom import Webdriver

youdotcom/__main__.py

+8
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,13 @@ def write():
6666
print("Total time taken: " + text["time"])
6767

6868

69+
@app.command()
70+
def clear():
71+
try:
72+
os.system("clear")
73+
except:
74+
os.system("cls")
75+
76+
6977
if __name__ == "__main__":
7078
app()

youdotcom/init.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def __init_browser(self) -> None:
150150

151151
# Start the browser
152152
options = uc.ChromeOptions()
153-
options.add_argument(f"--window-size={800},{600}")
153+
# options.add_argument(f"--window-size={800},{600}")
154+
options.add_argument("--headless")
154155
if self.__proxy:
155156
options.add_argument(f"--proxy-server={self.__proxy}")
156157
try:

youdotcom/test.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import write
2+
3+
print(write.Write.write("an email"))

0 commit comments

Comments
 (0)