Code Monkey home page Code Monkey logo

Comments (4)

mdesilva avatar mdesilva commented on July 29, 2024

Don't worry about the http requests. You can actually just run the app with the singleRun.py file from your command line. However, it seems that I left some hard coded arguments, such as warehouse locations, in the code, and it is just in generally a bit messy so I might try to clean it up this week.

from amazonflexunlimited.

shane806 avatar shane806 commented on July 29, 2024

So I actually spent some time last week familiarizing myself with everything and with a few edits concerning my particular preferences I have it where I can use either singleRun.py or service.py and its been working great for me so far.

Also, the way I've been filtering the offer results is just programmatically in the findJobs() function after all offer results have been returned from getOffers() and before calling acceptOffer().

So far, the time it takes to run the filters I have in place are fast enough to where I haven't had much of a problem with ultimately being able to get the kind of offers i'm ultimately looking for. So, by doing that I've avoided the issue of having to immediately accept any/all offers and then forfeit all the ones I'm ultimately uninterested in.

Just thought i'd mention that in case you have an interest in revising that part of flex.py because forfeiting previously accepted offers negatively impacts what Amazon calls "standing" in the Amazon Flex program, which is basically a point based score that determines what/how many offers a driver will be sent and ultimately their ability to remain a driver.

I can submit a PR if you want to see how I'm using it. Just lmk.

-Shane

from amazonflexunlimited.

shane806 avatar shane806 commented on July 29, 2024

Oh and I'm running on a Linode server and have had no issues, which is one solution to the AWS problem

from amazonflexunlimited.

mdesilva avatar mdesilva commented on July 29, 2024

I rewrote some of the program using a OO approach, and removed all the bloat. I haven't tested it since I don't have an Amazon Flex username and password, but you can test it. You're probably going to encounter bugs during run time, so feel free to make a PR if you can fix those bugs. Otherwise, just let me know of the bugs on this thread.

from amazonflexunlimited.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.