Files
instagram-bot/scripts/debug_verify.py

37 lines
1.2 KiB
Python

from GramAddict.core.telepathic_engine import TelepathicEngine
DUMP_PATH = "/Volumes/Alpha SSD/Coding/bot/debug/xml_dumps/post_load_timeout__2026-04-17_15-02-36.xml"
with open(DUMP_PATH, "r") as f:
xml_content = f.read()
engine = TelepathicEngine.get_instance()
TelepathicEngine._last_click_context = {"x": 178, "y": 558}
intent = "first image in explore grid"
print(
f"Any grid check: {any(k in intent.lower() for k in ['explore grid', 'profile grid', 'first image', 'grid item'])}"
)
post_markers = [
"row_feed_button_like",
"row_feed_button_comment",
"row_feed_button_share",
"row_feed_comment_textview_layout",
"row_feed_view_group",
"row_feed_photo_profile_name",
"row_feed_photo_imageview",
"clips_media_component",
"clips_viewer",
"clips_like_button",
"clips_comment_button",
"reel_viewer",
"clips_music_attribution",
"carousel_page_indicator",
"media_set_page_indicator",
"action_bar_original_title",
"media_header_user",
]
print(f"Marker found check: {any(m in xml_content.lower() for m in post_markers)}")
success = engine.verify_success(intent, xml_content)
print(f"Success is: {success}")