Open fabriziospadaro opened 4 years ago
I update the master branch. Please retest
so i updated the bot and installed the master branch, tested following bots
Ultimate.py : Not liking the hashtags "getting same log"
9%|███████████ | 7/82 [06:19<1:11:25, 57.14s/it]2020-01-28 15:16:16,507 - DEBUG - GET to endpoint: media/2231253368547012614_7384072680/info/ returned response: <Response [200]> 2020-01-28 15:16:17,120 - DEBUG - GET to endpoint: media/2231253368547012614_7384072680/info/ returned response: <Response [200]> 2020-01-28 15:16:17,682 - DEBUG - GET to endpoint: media/2231253368547012614_7384072680/comments/ returned response: <Response [200]>
Multi_script_Cli.py: not starting .. "name 'settings' is not defined" "log"
, in setting_input with open(settings, "w") as f: NameError: name 'settings' is not defined
`
Hey guys, any update?
Yes in the development branch...
@bruvv thanks for your effort .. but Its still the same .. not liking by hashtags
what hashtags? cat 2020-02-02 16:21:11,263 - INFO - Going to like media with hashtag #cat. Getting hashtag media.: 0it [00:00, ?it/s]2020-02-02 16:21:14,960 - DEBUG - GET to endpoint: feed/tag/cat/?max_id=&rank_token=27194590479_721d4d07-ab25-4b06-924e-726adcef1dfe&ranked_content=true& returned response: <Response [200]> 2020-02-02 16:21:15,568 - DEBUG - GET to endpoint: tags/search/?is_typeahead=true&q=cat&rank_token=27194590479_721d4d07-ab25-4b06-924e-726adcef1dfe returned response: <Response [200]> 2020-02-02 16:21:15,571 - INFO - Going to like 86 medias. 0%| | 0/86 [00:00<?, ?it/s]2020-02-02 16:21:16,181 - DEBUG - GET to endpoint: media/2234913471189759863_29323074844/info/ returned response: <Response [200]> 2020-02-02 16:21:16,589 - DEBUG - GET to endpoint: media/2234913471189759863_29323074844/info/ returned response: <Response [200]> 2020-02-02 16:21:17,002 - DEBUG - GET to endpoint: media/2234913471189759863_29323074844/comments/ returned response: <Response [200]> 1%|▉ | 1/86 [00:11<16:12, 11.44s/it]2020-02-02 16:21:27,447 - DEBUG - GET to endpoint: media/2234913442509430961_28004739581/info/ returned response: <Response [200]> 2020-02-02 16:21:27,852 - DEBUG - GET to endpoint: media/2234913442509430961_28004739581/info/ returned response: <Response [200]> 2020-02-02 16:21:28,302 - DEBUG - GET to endpoint: media/2234913442509430961_28004739581/comments/ returned response: <Response [200]> 2%|█▉ | 2/86 [00:22<15:56, 11.39s/it]2020-02-02 16:22:26,634 - DEBUG - GET to endpoint: media/2234913436840325087_2573140/info/ returned response: <Response [200]> 2020-02-02 16:22:27,552 - DEBUG - GET to endpoint: media/2234913436840325087_2573140/info/ returned response: <Response [200]> 2020-02-02 16:22:28,039 - DEBUG - GET to endpoint: media/2234913436840325087_2573140/comments/ returned response: <Response [200]>
+1 same here
I mostly only use the hashtags and users followers functions and I too is getting the same response 200, from both of these functions. I see that lots of the others are having the same issue too, is there any info of the error that I should provide?
anyone still having the response 200 problem..?
@ching222 Yes, I pulled most recent version an hour ago '0.107.0'.
Liking individual medias/bulk medias, downloading photos responds with 200 but does actually make the request. With that said, get_total_user_medias worked fine, get last user medias, get follower info, ids is fine. Looks like this version updated yesterday so need to dig into commits to see what actually changed.
edit:
setting check_media = False resolved it for like() - will need to try other functions
I am not following you @matthieuoliveira what is the error to begin with and what fixed setting check_media ?
@bruvv Sure,
bot.like(media_id=media_id, username=account, check_media = False)
given check_media is False, it returns 200 and the media is liked, given it's true, it never likes the media. Sorry if I wasn't clear. I can test out all endpoints on my end if that will be helpful?
For example,
script.py
bot = Bot(base_path=paths['log_path'] , save_logfile=False)
bot.login(username=login['username'], password=login['password'])
bot.like(media_id, user_id=user_id, check_media=True)
logs
2020-02-14 06:09:47,865 - INFO - Instabot version: 0.107.0 Started
2020-02-14 06:09:47,865 - DEBUG - Bot imported from /usr/local/lib/python3.8/site-packages/instabot/bot/bot.py
2020-02-14 06:09:47,868 - INFO - PRE-LOGIN FLOW!...
2020-02-14 06:09:50,075 - DEBUG - POST to endpoint: accounts/read_msisdn_header/ returned response: <Response [200]>
2020-02-14 06:09:51,235 - DEBUG - POST to endpoint: launcher/sync/ returned response: <Response [200]>
2020-02-14 06:09:53,356 - DEBUG - POST to endpoint: qe/sync/ returned response: <Response [200]>
2020-02-14 06:09:55,488 - DEBUG - POST to endpoint: attribution/log_attribution/ returned response: <Response [200]>
2020-02-14 06:09:57,621 - DEBUG - POST to endpoint: accounts/contact_point_prefill/ returned response: <Response [200]>
2020-02-14 06:10:00,118 - DEBUG - POST to endpoint: accounts/login/ returned response: <Response [200]>
2020-02-14 06:10:00,119 - INFO - Logged-in successfully as 'myaccount123'!
2020-02-14 06:10:00,119 - INFO - LOGIN FLOW! Just logged-in: True
2020-02-14 06:10:01,344 - DEBUG - POST to endpoint: launcher/sync/ returned response: <Response [200]>
2020-02-14 06:10:02,867 - DEBUG - POST to endpoint: qe/sync/ returned response: <Response [200]>
2020-02-14 06:10:06,500 - DEBUG - POST to endpoint: feed/timeline/ returned response: <Response [200]>
2020-02-14 06:10:08,911 - DEBUG - POST to endpoint: feed/reels_tray/ returned response: <Response [200]>
2020-02-14 06:10:11,139 - DEBUG - POST to endpoint: fbsearch/suggested_searches/ returned response: <Response [200]>
2020-02-14 06:10:13,393 - DEBUG - POST to endpoint: fbsearch/suggested_searches/ returned response: <Response [200]>
2020-02-14 06:10:15,645 - DEBUG - POST to endpoint: direct_v2/ranked_recipients/ returned response: <Response [200]>
2020-02-14 06:10:17,897 - DEBUG - POST to endpoint: direct_v2/ranked_recipients/ returned response: <Response [200]>
2020-02-14 06:10:20,679 - DEBUG - POST to endpoint: direct_v2/inbox/ returned response: <Response [200]>
2020-02-14 06:10:21,996 - DEBUG - GET to endpoint: direct_v2/get_presence/ returned response: <Response [200]>
2020-02-14 06:10:24,578 - DEBUG - GET to endpoint: news/inbox/?limited_activity=true&show_su=true returned response: <Response [200]>
2020-02-14 06:10:26,886 - DEBUG - GET to endpoint: loom/fetch_config/ returned response: <Response [200]>
2020-02-14 06:10:28,119 - DEBUG - GET to endpoint: users/profile_notice/ returned response: <Response [200]>
2020-02-14 06:10:29,522 - DEBUG - POST to endpoint: qp/batch_fetch/ returned response: <Response [200]>
2020-02-14 06:10:31,794 - DEBUG - POST to endpoint: discover/explore/ returned response: <Response [200]>
2020-02-14 06:10:31,800 - DEBUG - Loading Checkpoint file from: /app/config/myaccount123.checkpoint
2020-02-14 06:10:34,137 - DEBUG - GET to endpoint: users/target_account_123/usernameinfo/ returned response: <Response [200]>
2020-02-14 06:10:36,900 - DEBUG - GET to endpoint: media/media_id_123/info/ returned response: <Response [200]>
2020-02-14 06:10:39,207 - DEBUG - GET to endpoint: media/media_id_123/info/ returned response: <Response [200]>
2020-02-14 06:10:40,472 - DEBUG - GET to endpoint: media/media_id_123/comments/ returned response: <Response [200]>
2020-02-14 06:10:40,474 - DEBUG - Saving Checkpoint file to: /app/config/myaccount123.checkpoint
2020-02-14 06:10:40,477 - INFO - Total requests: 25
I got the same error. Script is not able to like medias
bot.like(media_id=media_id, username=account, check_media = False)
hey, can you tell me where do i have to add this code
bot.like(media_id=media_id, username=account, check_media = False)
in multi_script_CLI
Hello after providing my credentials correctly I get: INFO - Logged-in successfully as 'xxxxxxx'
Then it gathers the hashtags and starts liking them and i get: DEBUG - <Response [200]>
If I check from Instagram the post that I liked recently there is no new content being liked at all.
91%|█████████ | 78/86 [14:10<01:26, 10.84s/it]2020-01-10 17:11:04,664 - DEBUG - <Response [200]> 2020-01-10 17:11:04,972 - DEBUG - <Response [200]> 2020-01-10 17:11:05,279 - DEBUG - <Response [200]> 92%|█████████▏| 79/86 [14:21<01:16, 10.89s/it]2020-01-10 17:11:15,622 - DEBUG - <Response [200]> 2020-01-10 17:11:15,929 - DEBUG - <Response [200]> 2020-01-10 17:11:16,237 - DEBUG - <Response [200]> 93%|█████████▎| 80/86 [14:32<01:05, 10.91s/it]2020-01-10 17:11:26,511 - DEBUG - <Response [200]> 2020-01-10 17:11:26,767 - DEBUG - <Response [200]> 2020-01-10 17:11:27,002 - DEBUG - <Response [200]> 94%|█████████▍| 81/86 [14:43<00:54, 10.86s/it]2020-01-10 17:11:37,331 - DEBUG - <Response [200]> 2020-01-10 17:11:37,640 - DEBUG - <Response [200]> 2020-01-10 17:11:37,945 - DEBUG - <Response [200]> 95%|█████████▌| 82/86 [14:54<00:43, 10.89s/it]2020-01-10 17:11:48,494 - DEBUG - <Response [200]> 2020-01-10 17:11:48,905 - DEBUG - <Response [200]> 2020-01-10 17:11:49,311 - DEBUG - <Response [200]> 97%|█████████▋| 83/86 [15:05<00:33, 11.03s/it]2020-01-10 17:11:59,610 - DEBUG - <Response [200]> 2020-01-10 17:11:59,963 - DEBUG - <Response [200]> 2020-01-10 17:12:00,269 - DEBUG - <Response [200]> 98%|█████████▊| 84/86 [15:16<00:22, 11.01s/it]2020-01-10 17:12:10,612 - DEBUG - <Response [200]> 2020-01-10 17:12:11,022 - DEBUG - <Response [200]> 2020-01-10 17:12:11,328 - DEBUG - <Response [200]> 99%|█████████▉| 85/86 [15:27<00:11, 11.02s/it]2020-01-10 17:12:21,672 - DEBUG - <Response [200]> 2020-01-10 17:12:21,961 - DEBUG - <Response [200]> 2020-01-10 17:12:22,288 - DEBUG - <Response [200]> 100%|██████████| 86/86 [15:38<00:00, 10.91s/it] 2020-01-10 17:12:32,332 - INFO - DONE: Total liked 0 medias. 2020-01-10 17:12:32,335 - INFO - Total requests: 416