finished v1 script + flake setup
This commit is contained in:
10
tuhmayto/setup.cfg
Normal file
10
tuhmayto/setup.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
[metadata]
|
||||
name = tuh-activity-logger
|
||||
|
||||
[options]
|
||||
py_modules =
|
||||
tracker
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
tuh-activity-logger = tracker:main
|
||||
3
tuhmayto/setup.py
Normal file
3
tuhmayto/setup.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from setuptools import setup
|
||||
|
||||
setup()
|
||||
@@ -92,7 +92,11 @@ def scrape_and_log(url: str) -> None:
|
||||
print(f"Logged activity: {timestamp}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
url = "https://es.xhamsterporno.mx/users/johnneal911"
|
||||
setup_database()
|
||||
scrape_and_log(url)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user