Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

[FEATURE] Running via script #18

Open
meeoh opened this issue Oct 18, 2021 · 1 comment
Open

[FEATURE] Running via script #18

meeoh opened this issue Oct 18, 2021 · 1 comment

Comments

@meeoh
Copy link

meeoh commented Oct 18, 2021

This is an awesome project! Would love to see something thats runnable via script instead of having to bring up the entire server.

E.g reposting an ad by python3 repost my_ad.yml. The content of my_ad.yml could be just be all the attributes that get submit when using kijijis website (can post the ad once manually, look at the network console, and copy everything over). If all of that is converted into your submitFunction that would be really slick.

Another approach would be to document what the payload of the submitFunction should look like so people can create their own custom ads to pass to it. However, since different ads have different attributes it would be hard to cover all the bases

@rybodiddly
Copy link
Owner

rybodiddly commented Oct 20, 2021

Essentially what you're looking for is a bridge between my api and ArthurG's project.

This project does save an xml file (the kijiji mingle server uses xml) after successfully posting an ad if the repost option is selected. Those xml files have the ability to be manually submitted to the mingle server as raw requests. So in theory, this is no real issue, all the necessary api calls should be in the kijiji api file. Once you've created the xml file, you'd just need to send a delete request for the ad id, then resubmit the ad after a 3 minute delay. The only difference is that this project uses dynamic attributes & categories (i.e. it grabs them on the fly so they're always up to date) during ad creation, where ArthurG's uses static attributes and categories that require constant updating.

So you could create an ad creation script which uses the dynamic function abilities requesting input from the user, or you could just create a script that downloads the categories and attributes and uses static similarly to ArthurG's.

Don't have a lot of time at the moment, but could look back into this issue in a few months. Otherwise, you're more than welcome to take a crack at it.

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

No branches or pull requests

2 participants