Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Liking Timeline Feed not working #1240

Closed
4 tasks done
wkitsin opened this issue Jan 17, 2020 · 4 comments
Closed
4 tasks done

Liking Timeline Feed not working #1240

wkitsin opened this issue Jan 17, 2020 · 4 comments

Comments

@wkitsin
Copy link

wkitsin commented Jan 17, 2020

Please follow the guide below

  • Issues submitted without this template format will be ignored.
  • Rlease read them carefully and answer completely.
  • Do not post screenshots of error messages or code.
  • Put an x into all the boxes [ ] relevant to your issue (==> [x] no spaces).
  • Use the Preview tab to see how your issue will actually look like.
  • Any mention of spam-like actions or spam-related tools/libs/etc is strictly not allowed.

Before submitting an issue, make sure you have:

  • Updated to the lastest version
  • Read the README
  • Searched the bugtracker for similar issues including closed ones
  • Reviewed the sample code in tests and examples

Which example file are you using?

  • like_timeline_feed.py

Describe your Question/Issue:

First of all, thank you to all the contributors to this repo!

I was just testing out stuff by first liking my own timeline feed. But I'm only getting Nothing to like.. I've tried playing around with the filters in bot.py. But I'm still getting the same message.

Then I was digging further with the bot_like.py file by changing the line 207 output to

    self.logger.info("Liking timeline feed: !!!! ")

but it doesn't reflect in the logs when running the file. This is my first time working on a python project. I'm sorry if I'm missing out something here.

I've been also reading on post #701. But I'm not getting anything.

Thanks in advance !


Error/Debug Log:

2020-01-18 00:24:30,425 - INFO - Liking timeline feed:
2020-01-18 00:24:31,653 - DEBUG - <Response [200]>
2020-01-18 00:24:31,655 - INFO - Received 8 medias.
2020-01-18 00:24:31,655 - INFO - After filtration 0 medias left.
2020-01-18 00:24:31,655 - INFO - Nothing to like.
2020-01-18 00:24:31,656 - INFO - Total requests: 26
@duplicate-issues
Copy link

Hey @wkitsin,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@bruvv
Copy link
Collaborator

bruvv commented Jan 17, 2020

Put an x into all the boxes [ ] relevant to your issue (==> [x] no spaces).

Thanks for your question but please fix the x

@fighterii
Copy link
Contributor

fighterii commented Jan 18, 2020

This is typically related to different installation folders. I assume you installed instabot via pip and you have checkout/download the repo to some other place to use/edit the examples.

On a clean python file import instabot will import from the pip source (because that is typically the first occurrence in sys.path where an module instabot is found)

If you would change the line
sys.path.append(os.path.join(sys.path[0], "../"))
To something like
sys.path.insert(0,os.path.join(sys.path[0], "../"))
Than the bot from the location where you edit the examples will be used (because parent folder "../" is inserted at the first not the last place of the sys.path list)

@wkitsin
Copy link
Author

wkitsin commented Jan 21, 2020

thanks @fighterii !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants