Skip to content

Commit

Permalink
full headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkePilon committed Jan 15, 2023
1 parent bbf30e3 commit 96798e3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<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>
<br>
<br>
YouDotCom for python v1.0.22
YouDotCom for python v1.0.23
<br>
</h1>

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "youdotcom"
version = "1.0.22"
version = "1.0.23"
description = "official api wrapper for you.com and all of its apps"
readme = "README.md"
authors = ["SilkePilon <[email protected]>"]
Expand Down
1 change: 0 additions & 1 deletion tests/test_example/test.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from youdotcom import Webdriver
8 changes: 8 additions & 0 deletions youdotcom/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,13 @@ def write():
print("Total time taken: " + text["time"])


@app.command()
def clear():
try:
os.system("clear")
except:
os.system("cls")


if __name__ == "__main__":
app()
3 changes: 2 additions & 1 deletion youdotcom/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def __init_browser(self) -> None:

# Start the browser
options = uc.ChromeOptions()
options.add_argument(f"--window-size={800},{600}")
# options.add_argument(f"--window-size={800},{600}")
options.add_argument("--headless")
if self.__proxy:
options.add_argument(f"--proxy-server={self.__proxy}")
try:
Expand Down
3 changes: 3 additions & 0 deletions youdotcom/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import write

print(write.Write.write("an email"))

0 comments on commit 96798e3

Please sign in to comment.