dfreelon / pyktok

A simple module to collect video, text, and metadata from Tiktok.
BSD 3-Clause "New" or "Revised" License
346 stars 45 forks source link

Add dependencies section to pyproject.toml #26

Closed afuetterer closed 1 year ago

afuetterer commented 1 year ago

Hi @dfreelon,

thank you for this project. This is my first PR, so feel free to adapt, close or discuss, however you see fit.

A friend of mine recently ran into the same issue, as described in #25.

I tried to reproduce the behavior.

I installed the project with

pip install pyktok

Running

>>> import pyktok as pyk

threw this error:

>>> import pyktok as pyk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "***/.venv/lib/python3.11/site-packages/pyktok/__init__.py", line 1, in <module>
    from .pyktok import *
  File "***.venv/lib/python3.11/site-packages/pyktok/pyktok.py", line 8, in <module>
    import browser_cookie3
ModuleNotFoundError: No module named 'browser_cookie3'

Proposed Changes

So I propose the following changes:

What do you think?

You will find the error mentioned in #25 in the github actions log.

afuetterer commented 1 year ago

You need to pin webdriver-manager to 3.9.0, because ChromeType is missing from 3.9.1 onwards. Or you refactor using Chrome, instead of ChromeType, when using webdriver-manager > 3.9.0.

Let me know what you think.

afuetterer commented 1 year ago

Is this no good?

dfreelon commented 1 year ago

Apologies, I've been busy with other projects. Let me look into this and get back to you. In the meantime, feel free to fork your own version.

afuetterer commented 1 year ago

No problem. Please let me know what you think, when you have the time.

afuetterer commented 1 year ago

Closing this due to inactivity.

dfreelon commented 4 weeks ago

Hi, I wanted to follow up on this and apologize--time got away from me to address it and I also didn't understand the distinction between requires and dependencies in pyproject.toml as this was my first time using hatchling. Anyway, I corrected the pyproject.toml but didn't add all the test material since I'm not sure it would work given all the changes to pyktok since this was added. Thanks again for bringing this to my attention and I regret leaving it unattended for so long.