Code Monkey home page Code Monkey logo

amazonflexunlimited's People

Contributors

j-abellera avatar mdesilva avatar possiblemeatball avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazonflexunlimited's Issues

Charles Proxy

Is it important for the script to first run Charles Proxy for reverse engineer and use the values obtained from it, or your values can be used on any device?

searching specific warehouses

hi,
i'm trying to select specific warehouses, i live in san fransisco bay area, you wrote on the discription "For warehouses not in the table above, you'll have to snoop on requests made by the Amazon Flex app to get the internal warehouse id" i would like more information on how to find internals warehouses in my region.
thank you.

Unable to authenticate to Amazon Flex

I think there is a problem with the reCaptcha or frc
Tried to run it on my PC and on Pythonista app on my iphone and same problem.

It was working fine, but the problem only happening when I run on another device or when I am using my iphone outside home (not connected to home wifi).

I had this issue on my iphone yesterday and what i did, i logged in on Amazon on my safari and then it worked on my Pythonista

Came back home and had the same problem and fixed it by logging in to Microsoft Edge and it worked on my terminal (cmd)

Today i tried the tricks and yhey did not work

Any help?

Basic operation?

Hey, idk if you'll see this since the readme states you're no longer working on this project, but I was wondering if you could explain how basic operation of this code base would work?

I guess I would say I'm an intermediate level coder but I've never worked with internet related stuff so all the http things are a bit confusing to me.

Thanks so much in advance if you're able to respond!

-Shane

help a newb

can anyone explain to me how to run this program? i am a total newb and have no coding knowledge. i keep getting syntax error when trying to use pip install -r requirements.txt. I tried following the readme but I am pretty confused.

DesiredWarehouse

HI- ihave configured the bot to use my desired warehouse IDs, however it seems to be pulling bloks from other warehouses that are not in the list. what i ultimately want is to on run the bot for whole foods warhouse IDs, and only catch a regular amazon warehouse if the pay per hour= Xamount.

is this possible?

Error when loggin

Hi, i try to run but i am getting this error, any idea?

Traceback (most recent call last):
File "/home/server/amz/./lib/FlexUnlimited.py", line 122, in __getFlexRequestAuthToken
return response.get("response").get("success").get("tokens").get("bearer").get("access_token")
AttributeError: 'NoneType' object has no attribute 'get'

During handling of the above exception, another exception occurred:
Traceback (most recent call last):

File "/home/server/amz/app.py", line 5, in
flexUnlimited = FlexUnlimited()
File "/home/server/amz/./lib/FlexUnlimited.py", line 70, in init
self.__requestHeaders["x-amz-access-token"] = self.__getFlexRequestAuthToken()
File "/home/server/amz/./lib/FlexUnlimited.py", line 128, in __getFlexRequestAuthToken
sys.exit()
SystemExit

Refresh time

Should a refresh delay be implemented between each fetching of offers? Isn't it too fetching too fast without it?

More of a feature request…

Would it be possible to set a Max block length? Like say I only want to work a 3 hour block? I know I can set start and end hours

Resolved

can anybody help me

i work in japan. How to change parameters to connect to amazon.co.jp

Time filter

Hi,
This is more of a question.

I am one of the people who pay to use a “bot”. I’m going to try and run this today. I’m not really familiar with coding etc but I was wondering if this has a time filter? For example, I only want blocks from specific warehouses between 6am - 4pm.

Rate limited all the time.

I keep getting rate limited with the script. Does anyone know what delays to use? I tried 1.5 seconds and even 3 seconds and will get rate limited for 30 mins or more every couple of minutes.

AtrributeError

I am getting this error. I have not been able to get to the 2 factor auth login.

During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Ronnie\AmazonFlexUnlimited\app.py", line 6, in <module> flexUnlimited = FlexUnlimited() ^^^^^^^^^^^^^^^ File "C:\Users\Ronnie\AmazonFlexUnlimited\lib\FlexUnlimited.py", line 72, in __init__ self.__requestHeaders["x-amz-access-token"] = self.__getFlexRequestAuthToken() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Ronnie\AmazonFlexUnlimited\lib\FlexUnlimited.py", line 126, in __getFlexRequestAuthToken twoStepVerificationChallengeUrl = self.__getTwoStepVerificationChallengeUrl(response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Ronnie\AmazonFlexUnlimited\lib\FlexUnlimited.py", line 136, in __getTwoStepVerificationChallengeUrl verificationChallengeCode: str = challengeRequest.get("response").get("challenge").get("uri").split("?")[1].split("=")[1] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'

FILTER NOT WORKING!!!

I have tried changing the DesiredWarehouses and it is still accepting any offer show up
any assistance please!

Error message

I dont know why, after few min i see this error:
"'Message': 'before - AuthorizationRequiredException validating token with Aztec; x-amz-access-token:......."

request returns 401

while running the script it returns ERROR: Unable to authenticate to Amazon Flex. Please provide a valid Amazon Flex username and password. and the request returns 401 unauth
tried with multiple account but stays the same. ./sh file returns null

Can't be authenticated after put correct username and password

The endpoint I'm hitting is
https://api.amazon.com/auth/register

However, the response I get is following:

{
    "response": {
        "challenge": {
            "challenge_reason": "HandleOnWebView",
            "uri": "https://www.amazon.com/ap/challenge?arb=03609690-02dd-4f27-97ad-b1c67f4dv776"
        }
    },
    "request_id": "c0001606-206a-4641-a1a4-300b60c09765"
}

This means that the authentication process has failed. And then normally I have to wait for 2 hours and try again and it will work for a couple of times and then it will repeat this again and again
@mdesilva Do you know what does this mean and is there a way that we can avoid this? Thanks!

2 factor auth

When I'm running the app.py I get the 1-time code from amazon and I am completing the challenge and I get to "Looking for Something? We're sorry. The Web address you entered is not a functioning page on our site" but nothing changes after that. I rerun the code and nothing changed. Also, I wanted to specify that my Amazon flex email is the same as my amazon account.

Authorization Headers

I see that the Authorization and Cookies are hardcoded for the headers. Is this something that needs to be changed after extracting my account's info with Charles Proxy?

Also, I see that there is no delay, would it be beneficial to add a delay, or is it OK to continuously make requests?

Thanks.

Filtering Offers

Hi
Is it possible that the server filters our offers depending on the warehouse? Because right now the script first receives all the offers from the server and then filters the offers. Is it possible that I write my warehouse id in the post request and the server only sends me offers for that specific warehouse.
Thanks

Hosting on AWS for minimum latency

Hello,

I know the readme says that the bot did not work on AWS, but that is not the case, as many other bots use AWS. I just tested the latency to flex-capacity-na from my AWS server and it is only 0.9ms, compared to an average of 33ms in my 1Gbps/1Gbps residential connection. I'm wondering if this will create an issue long term? Has anybody tried running the script on AWS for an extended time?

please tell me why it says Unable to authenticate

I tried to do what you said
But your program said that something like this.
Amazon Flex Unlimited v2
ERROR: Unable to authenticate to Amazon Flex. Please provide a valid Amazon Flex username and password.

please solve this problem

Random Authentication issue.

Are you guys experiencing the same? I randomly receive this error while running the script. Sometimes after a few requests attempt, some time it takes longer to show up.

250 requests attempted
300 requests attempted
ERROR: {'Message': 'before - AuthorizationRequiredException validating token with Aztec; x-amz-access-token: Atna|EwICIPWdH0sPt7VDVbh1Hq9Ubi2CjT6LIBWJCbHcMymqLmSaSqfstcn1QWiekfgkYKQyBRxwPdAY4WFfD8LXMnXOeXNxVTzGFmOqT_iNE-1aJjj-GyTZnkgnsgISWXZ9v8dejlqgu4a9ocVDVLsFicmFkyZaqh1HViN6p7zeWHitx3mwUuA5u2Q0kF2W8X0p7K1go68lZCbq4ro4ohJLg7RjOZpO8PvDqcWXIANWNJCkIfR22g, requestId: 987deb7d-0089-4825-9e72-3e0008bf1f3c'}
INFO: Job search cycle ending...
INFO: Accepted 0 offers in 384.28913044929504 seconds

I need help

Hello, first I want to thank you for this valuable tool. I have been trying to run the application for a long time and I have had several errors that I have been correcting little by little, I have very little programming knowledge and it is difficult for me to solve these errors. I was finally able to run it but two seconds later it stops. There is something that needs to be modified or changed. The Windows firewall and antivirus have already been disabled and the problem is not resolved.
INFO: Starting job search...
0 requests attempted

INFO: Job search cycle ending...
INFO: Accepted 0 offers in 2.943331003189087 seconds

User specific changes in FlexUnlimited.py

Hi,
First, thank you for helping us good sir, much appreciated :)

As for the question, I noticed that there're default values related to device in FlexUnlimited.py:
"registration_data": {
"domain": "Device",
"app_version": "0.0",
"device_type": "A3NWHXTQ4EBCZS",
"os_version": "15.2",
"device_serial": "0000000000000000",
"device_model": "iPhone",
"app_name": "Amazon Flex",
"software_version": "1"

Do you think it's better to populate app_version, device_serial, device_type with phone specific data to make it look less suspicious in case they decide to filter automated software? If so, what would be the device_type for Android and what's the difference between software_version and app_version?

Not Really an issue

im not sure how to do step number 3 could you explain a bit more in depth please

Unable to authenticate

Thanks for the help.

I have tried many times to set/ export the variables (AMZNFLEXUSERNAME & AMZNFLEXPWD), but it is giving me the following:

"Unable to authenticate to Amazon Flex. Please provide a valid Amazon Flex username and password."

Is the app still working?

getAllServiceAreas error

I run python3 app.py getAllServiceAreas to get warehouse ids' but returns an error.

Amazon Flex Unlimited v2

 Your service area options:
Traceback (most recent call last):
  File "D:\AmazonFlexUnlimited-master\AmazonFlexUnlimited-master\app.py", line 11, in <module>
    print(flexUnlimited.getAllServiceAreas())
  File "D:\AmazonFlexUnlimited-master\lib\FlexUnlimited.py", line 177, in getAllServiceAreas
    for serviceArea in serviceAreaPoolList:
TypeError: 'NoneType' object is not iterable
PS D:\Chrome\Downloads\AmazonFlexUnlimited-master\AmazonFlexUnlimited-master>

Does anyone have an idea how to sort this out?

issues?

after trying to run app.py I'm getting these errors:
Traceback (most recent call last):
File "C:\Users\Owner\Documents\GitHub\AmazonFlexUnlimited\app.py", line 5, in
flexUnlimited = FlexUnlimited()
File "C:\Users\Owner\Documents\GitHub\AmazonFlexUnlimited\lib\FlexUnlimited.py", line 54, in init
config = json.load(configFile)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Owner\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ':' delimiter: line 3 column 3 (char 54)

Do you know why this could be? I've been looking at the code and everything looks good to me

continuing running

Is there a way to let the program running? When I start the program and set the "retryLimit" in the config file, higher than 100, I receive the message

"ERROR: {'Message': 'before - AuthorizationRequiredException validating token with Aztec; x-amz-access-token"

When I set it to 100, it runs for only about 40 - 60 seconds and then it stops. Any help would be appreciated.

specs.openid.net can not be reached

Hi,
specs.openid.net can not be reached.

getting error from amazon page:

Looking for Something?
We're sorry. The Web address you entered is not a functioning page on our site
Go to Amazon.com's Page

QUESTION: "serviceAreaIds" ???

Do I need to find my "serviceAreaIds" value and replace it with one exist in FlexUnlimited.py ??? or should I leave as it is ["2"] ???

Route issue

Hi
I'm facing issue routing for India please guide me

Hmac signature

Isn’t there a need to keep changing the hmac signature where x-amz-date changes all the time? Is there a routine/function for this?

Increase server response time?

Hello
I have setup the app successfully, but its slow compared to other scripts. I also tried it on vps in ashburn with low latency but still it misses some blocks. In the getOffers I used the elapsed.time for post request and it is usually between 0.10-0.20 seconds. Can it be made any faster so that it get offers quickly and post the request successfully?. Also, when it misses the block the server response is 410. thanks

2 factor auth

I get to the 2 factor auth link and after completing the challenge and re running the app, it is still asking to complete challenge.

Not able to log in

ERROR: Unable to authenticate to Amazon Flex. Please provide a valid Amazon Flex username and password.
I am getting an OTP on my mobile number when I run the app.py

403 Error

I'm getting error of 403 while trying to get Auth token... I've tried two step verification too but no luck.
Is it because of the account I'm using belongs to India ?
If so how to find routes of Indian server. Please resolve

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.