Skip to content

Instantly share code, notes, and snippets.

build:
gpu: true
python_version: "3.12"
system_packages:
- "libglib2.0-0"
- "ffmpeg"
python_packages:
- "ultralytics>=8.3.0"
predict: predict.py:Predictor
# Configuration for Cog ⚙️
# Reference: https://cog.run/yaml
build:
# set to true if your model requires a GPU
gpu: true
# a list of ubuntu apt packages to install
# system_packages:
# - "libgl1-mesa-glx"
class FindProductImagesJob
include Sidekiq::Job
def perform
with_browser do |browser|
find_and_process_urls(browser)
end
end
def with_browser
(.venv) alexgodin@Alexs-MacBook-Air ig-bot % python3 main.py #triggshorts 0
2024-10-24 09:31:26,552 - INFO - Chromedriver is already installed.
2024-10-24 09:31:26,554 - INFO - Started scraping for hashtag: #triggshorts. Scraping type 0.
2024-10-24 09:31:26,554 - INFO - Proxy settings are ready
2024-10-24 09:31:26,554 - INFO - Starting Chrome Wire WebDriver.
2024-10-24 09:31:26,555 - INFO - Using default request storage
2024-10-24 09:31:26,567 - INFO - Created proxy listening on ::ffff:127.0.0.1:53955
2024-10-24 09:31:31,151 - INFO - Loaded cookies for profile evelynmurphy74157
2024-10-24 09:31:34,656 - INFO - Capturing request: https://www.instagram.com/graphql/query
2024-10-24 09:31:34,939 - INFO - Streaming WebSocket messages between 127.0.0.1:54006 and gateway.instagram.com:443
Page Dress
===
Versatile dress pattern
Midi-length dress
Button-down dress
Gathered waist dress
Pleated dress
Sleeveless dress option
Long-sleeve dress option
Booting: production
I, [2024-09-12T08:01:38.405313 #35831] INFO -- : [SKYLIGHT] [6.0.4] Skylight agent enabled
Booting: production
I, [2024-09-12T08:01:04.420841 #35751] INFO -- : [SKYLIGHT] [6.0.4] Skylight agent enabled
Booting: production
I, [2024-09-12T08:00:36.274700 #35701] INFO -- : [SKYLIGHT] [6.0.4] Skylight agent enabled
Booting: production
I, [2024-09-12T07:59:52.466897 #35634] INFO -- : [SKYLIGHT] [6.0.4] Skylight agent enabled
Booting: production
I, [2024-09-12T07:59:30.108663 #35582] INFO -- : [SKYLIGHT] [6.0.4] Skylight agent enabled