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

Getting Error When Running #6

Closed
BDM96 opened this issue Nov 7, 2021 · 4 comments
Closed

Getting Error When Running #6

BDM96 opened this issue Nov 7, 2021 · 4 comments
Labels
invalid This doesn't seem right

Comments

@BDM96
Copy link

BDM96 commented Nov 7, 2021

When I run the scraper I get the error " "'TargetedCreator'" is missing or malformed in the configuration file! Read the ReadMe file for assistance."

I copied the authorization and User-Agent from the dev tools as explained in the ReadMe but I still get the error. Should they be in quotes or a space between the = and the information I am putting into the config file?

@Avnsx
Copy link
Owner

Avnsx commented Nov 7, 2021

When I run the scraper I get the error " "'TargetedCreator'" is missing or malformed in the configuration file! Read the ReadMe file for assistance."

I copied the authorization and User-Agent from the dev tools as explained in the ReadMe but I still get the error. Should they be in quotes or a space between the = and the information I am putting into the config file?

No quotes or spaces, just read step 7.

@Avnsx Avnsx closed this as completed Nov 7, 2021
@BDM96
Copy link
Author

BDM96 commented Nov 7, 2021

For step 7 I'm putting the username of the user pulled from the page and making sure it matches the username in the URL but still receive the same error. For example it is Username=MyCreatorUsername

@Avnsx
Copy link
Owner

Avnsx commented Nov 7, 2021

For step 7 I'm putting the username of the user pulled from the page and making sure it matches the username in the URL but still receive the same error. For example it is Username=lillieadd

Make sure there's no invisible characters(unicode) and that you've really only replaced the ReplaceMe's with your data. The = and so on has to stay there. The error is clearly pointing at you not managing to properly write the config file in the required format.
Here's the original file for reference https://github.com/Avnsx/fansly/blob/main/config.ini
It has to be in the same file directory as the .exe or .py file you launched the code with.
Also make sure you saved the file after editing it.

@Avnsx Avnsx reopened this Nov 7, 2021
@Avnsx
Copy link
Owner

Avnsx commented Nov 7, 2021

When I run the scraper I get the error " "'TargetedCreator'" is missing or malformed in the configuration file! Read the ReadMe file for assistance."

I copied the authorization and User-Agent from the dev tools as explained in the ReadMe but I still get the error. Should they be in quotes or a space between the = and the information I am putting into the config file?

I just reproduced this; for this to happen you must have edited [TargetedCreator] away from the first line, or edited / removed it in general. Or config.ini is not in the same directory as the executable file. Your first two lines would need to look like this, for the scraper to read the config file.

[TargetedCreator]
Username=MyCreatorUsername

@Avnsx Avnsx closed this as completed Nov 8, 2021
@Avnsx Avnsx added the invalid This doesn't seem right label Nov 9, 2021
Avnsx added a commit that referenced this issue Nov 20, 2021
+ added check for configuration file as response to #6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants