Skip to content

Commit

Permalink
fuck u twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixinol committed Nov 12, 2023
1 parent f5fd3ae commit 17b7412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions tests/CI.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from pathlib import Path

from selenium import webdriver
from selenium.webdriver.chrome.webdriver import WebDriver
Expand All @@ -21,6 +22,9 @@ def test_spider(self):
broswer = get_browser()
tweet = Tweet('https://twitter.com/_CASTSTATION/status/1697029186777706544', is_ci_test=True)
tweet.load_data(broswer)
broswer.save_screenshot('debug.png')
print('fuck u twitter')
print(Path('debug.png').absolute())
self.assertEqual(True,True) # add assertion here


Expand Down
4 changes: 1 addition & 3 deletions twitter_user_tweet_crawler/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def _on_job_complete(self, index, future):
pass
# By default, `concurrent.futures` will silently log errors but will not raise them
# Throw the error directly
index.save_screenshot('debug.png')
print('fuck u twitter')
print(Path('debug.png').absolute())

self.browser[elements].__dict__['is_using'] = False
self.check_and_work()

0 comments on commit 17b7412

Please sign in to comment.