text
stringlengths
1
1.05M
#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # Script for running the Dockerfile for Traffic Ops. # The Dockerfile sets up a Docker image which can be used for any new Traffic Ops container; # This script, which should be run when the container is run (it's the ENTRYPOINT), will configure the container. # # The following environment variables must be set, ordinarily by `docker run -e` arguments: # DB_SERVER # DB_PORT # DB_ROOT_PASS # DB_USER # DB_USER_PASS # DB_NAME # ADMIN_USER # ADMIN_PASS # TO_HOST # TO_PORT # TO_PERL_HOST # TO_PERL_PORT # TP_HOST # # Check that env vars are set envvars=( DB_SERVER DB_PORT DB_ROOT_PASS DB_USER DB_USER_PASS ADMIN_USER ADMIN_PASS DOMAIN TO_PERL_HOST TO_PERL_PORT TO_HOST TO_PORT TP_HOST) for v in $envvars do if [[ -z $$v ]]; then echo "$v is unset"; exit 1; fi done until [[ -f "$X509_CA_ENV_FILE" ]] do echo "Waiting on SSL certificate generation." sleep 2 done # these expected to be stored in $X509_CA_ENV_FILE, but a race condition could render the contents # blank until it gets sync'd. Ensure vars defined before writing cdn.conf. until [[ -n "$X509_GENERATION_COMPLETE" ]] do echo "Waiting on X509 vars to be defined" sleep 1 source "$X509_CA_ENV_FILE" done # Add the CA certificate to sysem TLS trust store cp $X509_CA_CERT_FULL_CHAIN_FILE /etc/pki/ca-trust/source/anchors update-ca-trust extract crt="$X509_INFRA_CERT_FILE" key="$X509_INFRA_KEY_FILE" echo "crt=$crt" echo "key=$key" cat <<-EOF >/opt/traffic_ops/app/conf/cdn.conf { "hypnotoad" : { "listen" : [ "https://$TO_PERL_FQDN:$TO_PERL_PORT?cert=$crt&key=$key&verify=0x00&ciphers=AES128-GCM-SHA256:HIGH:!RC4:!MD5:!aNULL:!EDH:!ED" ], "user" : "trafops", "group" : "trafops", "heartbeat_timeout" : 20, "pid_file" : "/var/run/traffic_ops.pid", "workers" : 12 }, "traffic_ops_golang" : { "insecure": true, "port" : "$TO_PORT", "proxy_timeout" : 60, "proxy_keep_alive" : 60, "proxy_tls_timeout" : 60, "proxy_read_header_timeout" : 60, "read_timeout" : 60, "read_header_timeout" : 60, "write_timeout" : 60, "idle_timeout" : 60, "log_location_error": "$TO_LOG_ERROR", "log_location_warning": "$TO_LOG_WARNING", "log_location_info": "$TO_LOG_INFO", "log_location_debug": "$TO_LOG_DEBUG", "log_location_event": "$TO_LOG_EVENT", "max_db_connections": 20, "backend_max_connections": { "mojolicious": 4 }, "whitelisted_oauth_urls": [], "oauth_client_secret": "" }, "cors" : { "access_control_allow_origin" : "*" }, "to" : { "base_url" : "https://$TO_FQDN", "email_from" : "no-reply@$INFRA_SUBDOMAIN.$TLD_DOMAIN", "no_account_found_msg" : "A Traffic Ops user account is required for access. Please contact your Traffic Ops user administrator." }, "portal" : { "base_url" : "https://$TP_FQDN/!#/", "email_from" : "no-reply@$INFRA_SUBDOMAIN.$TLD_DOMAIN", "pass_reset_path" : "user", "user_register_path" : "user" }, "secrets" : [ "$TO_SECRET" ], "geniso" : { "iso_root_path" : "/opt/traffic_ops/app/public" }, "inactivity_timeout" : 60, "smtp" : { "enabled" : false, "user" : "", "password" : "", "address" : "" } } EOF cat <<-EOF >/opt/traffic_ops/app/conf/production/database.conf { "description": "Local PostgreSQL database on port 5432", "dbname": "$DB_NAME", "hostname": "$DB_FQDN", "user": "$DB_USER", "password": "$DB_USER_PASS", "port": "$DB_PORT", "ssl": false, "type": "Pg" } EOF cat <<-EOF >/opt/traffic_ops/app/db/dbconf.yml version: "1.0" name: dbconf.yml production: driver: postgres open: host=$DB_FQDN port=$DB_PORT user=$DB_USER password=$DB_USER_PASS dbname=$DB_NAME sslmode=disable test: driver: postgres open: host=$DB_FQDN port=$DB_PORT user=$DB_USER password=$DB_USER_PASS dbname=to_test sslmode=disable EOF cat <<-EOF >/opt/traffic_ops/app/conf/production/riak.conf { "user": "$TV_RIAK_USER", "password": "$TV_RIAK_PASSWORD" } EOF
#!/bin/bash # From https://gitlab.com/luxtorpeda/packages/gzdoom - See LICENSE file for more information # CLONE PHASE git clone https://github.com/coelckers/gzdoom.git source pushd source git checkout 3037c08 git am < ../patches/0001-Workaround-for-missing-PRId64.patch popd git clone https://github.com/FluidSynth/fluidsynth.git fluidsynth pushd fluidsynth git checkout -f 19a20eb popd git clone https://github.com/coelckers/ZMusic.git zmusic pushd zmusic git checkout -f 9097591 popd readonly pfx="$PWD/local" mkdir -p "$pfx" # BUILD PHASE pushd "fluidsynth" mkdir -p build cd build cmake \ -DCMAKE_INSTALL_PREFIX="$pfx" \ .. make -j "$(nproc)" install popd pushd "zmusic" mkdir -p build cd build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH="$pfx" \ -DCMAKE_INSTALL_PREFIX="$pfx" \ -DFLUIDSYNTH_INCLUDE_DIR="$pfx/include" \ -DFLUIDSYNTH_LIBRARIES="$pfx/lib64" \ .. make -j "$(nproc)" install popd pushd "source" mkdir -p build cd build cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH="$pfx" \ .. make -j "$(nproc)" popd # COPY PHASE mkdir -p "$diststart/common/dist/lib" cp -rfv "source/build"/{gzdoom,soundfonts,*.pk3} "$diststart/common/dist/" cp -rfv "$pfx/lib/libzmusic.so" "$diststart/common/dist/lib" cp -rfv "$pfx/lib64"/libfluidsynth.so* "$diststart/common/dist/lib" cp -rfv "assets/run-gzdoom.sh" "$diststart/common/dist/"
SELECT * FROM customers ORDER BY name LIMIT 10;
<filename>packages/@sanity/desk-tool/src/DeskToolPanes.js import React from 'react' import PropTypes from 'prop-types' import {sumBy} from 'lodash' import SplitController from 'part:@sanity/components/panes/split-controller' import SplitPaneWrapper from 'part:@sanity/components/panes/split-pane-wrapper' import {LOADING} from './utils/resolvePanes' import LoadingPane from './pane/LoadingPane' import Pane from './pane/Pane' import {Observable, merge} from 'rxjs' import {map, share, debounceTime, distinctUntilChanged} from 'rxjs/operators' const COLLAPSED_WIDTH = 55 const BREAKPOINT_SCREEN_MEDIUM = 512 const fromWindowEvent = eventName => new Observable(subscriber => { const handler = event => subscriber.next(event) window.addEventListener(eventName, handler) return () => { window.removeEventListener(eventName, handler) } }) const orientationChange$ = fromWindowEvent('orientationchange') const resize$ = fromWindowEvent('resize') const windowWidth$ = merge(orientationChange$, resize$).pipe( share(), debounceTime(50), map(() => window.innerWidth) ) function getPaneMinSize(pane) { return pane.type === 'document' ? 500 : 320 } function getPaneDefaultSize(pane) { return pane.type === 'document' ? 672 : 350 } export default class DeskToolPanes extends React.Component { static propTypes = { keys: PropTypes.arrayOf(PropTypes.string).isRequired, autoCollapse: PropTypes.bool, panes: PropTypes.arrayOf( PropTypes.oneOfType([ PropTypes.shape({ id: PropTypes.string.isRequired }), PropTypes.symbol ]) ).isRequired } state = { collapsedPanes: [], windowWidth: typeof window === 'undefined' ? 1000 : window.innerWidth, isMobile: typeof window !== 'undefined' && window.innerWidth < BREAKPOINT_SCREEN_MEDIUM } collapsedPanes = [] userCollapsedPanes = [] componentDidUpdate(prevProps) { if (this.props.panes.length != prevProps.panes.length) { const paneToForceExpand = this.props.panes.length - 1 this.userCollapsedPanes = [] this.handleAutoCollapse(this.state.windowWidth, paneToForceExpand, this.userCollapsedPanes) } } componentDidMount() { const {autoCollapse, panes} = this.props if (autoCollapse) { this.resizeSubscriber = windowWidth$.pipe(distinctUntilChanged()).subscribe(windowWidth => { this.setState({ windowWidth, isMobile: windowWidth < BREAKPOINT_SCREEN_MEDIUM }) this.handleAutoCollapse(windowWidth, undefined, this.userCollapsedPanes) }) if (window) { this.handleAutoCollapse(window.innerWidth, panes.length - 1, this.userCollapsedPanes) } } } componentWillUnmount() { if (this.props.autoCollapse && this.resizeSubscriber) { this.resizeSubscriber.unsubscribe() } } handlePaneCollapse = index => { if (this.state.isMobile || this.props.panes.length === 1) { return } this.userCollapsedPanes[index] = true const paneToForceExpand = this.props.panes.length - 1 this.handleAutoCollapse(this.state.windowWidth, paneToForceExpand, this.userCollapsedPanes) } handlePaneExpand = index => { if (this.state.isMobile || this.props.panes.length === 1) { return } this.userCollapsedPanes[index] = false this.handleAutoCollapse(this.state.windowWidth, index, this.userCollapsedPanes) } handleAutoCollapse = (windowWidth, paneWantExpand, userCollapsedPanes = []) => { const {autoCollapse, panes} = this.props const {isMobile} = this.state const paneToForceExpand = typeof paneWantExpand === 'number' ? paneWantExpand : panes.length - 1 if (isMobile || !autoCollapse || !panes || panes.length === 0) { return } const autoCollapsedPanes = [] const totalMinSize = sumBy(panes, pane => getPaneMinSize(pane)) let remainingMinSize = totalMinSize remainingMinSize -= getPaneMinSize(panes[paneToForceExpand]) autoCollapsedPanes[paneToForceExpand] = false if (totalMinSize > windowWidth) { panes.forEach((pane, i) => { if (paneToForceExpand != i) { if (remainingMinSize > windowWidth - getPaneMinSize(panes[paneToForceExpand])) { autoCollapsedPanes[i] = true remainingMinSize -= getPaneMinSize(pane) - COLLAPSED_WIDTH } } }) } // Respect userCollapsed before autoCollapsed this.setState({ collapsedPanes: panes.map((pane, i) => userCollapsedPanes[i] || autoCollapsedPanes[i]) }) } renderPanes() { const {panes, keys} = this.props const {isMobile} = this.state const path = [] return panes.map((pane, i) => { const isCollapsed = !isMobile && this.state.collapsedPanes[i] const paneKey = `${i}-${keys[i - 1] || 'root'}` // Same pane might appear multiple times, so use index as tiebreaker const wrapperKey = pane === LOADING ? `loading-${i}` : `${i}-${pane.id}` path.push(pane.id || `[${i}]`) return ( <SplitPaneWrapper key={wrapperKey} isCollapsed={!!isCollapsed} minSize={getPaneMinSize(pane)} defaultSize={getPaneDefaultSize(pane)} > {pane === LOADING ? ( <LoadingPane key={paneKey} // Use key to force rerendering pane on ID change path={path} index={i} onExpand={this.handlePaneExpand} onCollapse={this.handlePaneCollapse} isCollapsed={!!isCollapsed} isSelected={i === panes.length - 1} /> ) : ( <Pane key={paneKey} // Use key to force rerendering pane on ID change index={i} itemId={keys[i - 1]} onExpand={this.handlePaneExpand} onCollapse={this.handlePaneCollapse} isCollapsed={!!isCollapsed} isSelected={i === panes.length - 1} {...pane} /> )} </SplitPaneWrapper> ) }) } render() { const {isMobile} = this.state return ( <SplitController isMobile={isMobile} autoCollapse={this.props.autoCollapse} collapsedWidth={COLLAPSED_WIDTH} onCheckCollapse={this.handleCheckCollapse} > {this.renderPanes()} </SplitController> ) } }
<filename>ogg-plugin/src/main/java/com/aliyun/odps/ogg/handler/datahub/modle/PluginStatictics.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.aliyun.odps.ogg.handler.datahub.modle; /** * Created by lyf0429 on 16/5/16. */ public class PluginStatictics { private static long totalInserts = 0L; private static long totalUpdates = 0L; private static long totalDeletes = 0L; private static long totalTxns = 0L; private static long totalOperations = 0L; private static long sendTimesInTx = 0L; public static long getTotalInserts() { return totalInserts; } public static void setTotalInserts(long totalInserts) { PluginStatictics.totalInserts = totalInserts; } public static void addTotalInserts() { totalInserts++; } public static long getTotalUpdates() { return totalUpdates; } public static void setTotalUpdates(long totalUpdates) { PluginStatictics.totalUpdates = totalUpdates; } public static void addTotalUpdates() { totalUpdates++; } public static long getTotalDeletes() { return totalDeletes; } public static void setTotalDeletes(long totalDeletes) { PluginStatictics.totalDeletes = totalDeletes; } public static void addTotalDeletes() { totalDeletes++; } public static long getTotalTxns() { return totalTxns; } public static void setTotalTxns(long totalTxns) { PluginStatictics.totalTxns = totalTxns; } public static void addTotalTxns() { totalTxns++; } public static long getTotalOperations() { return totalOperations; } public static void setTotalOperations(long totalOperations) { PluginStatictics.totalOperations = totalOperations; } public static void addTotalOperations() { totalOperations++; } public static long getSendTimesInTx() { return sendTimesInTx; } public static void setSendTimesInTx(long sendTimesInTx) { PluginStatictics.sendTimesInTx = sendTimesInTx; } public static void addSendTimesInTx() { sendTimesInTx++; } }
<filename>dbflute-runtime/src/test/java/org/dbflute/dbmeta/valuemap/MetaHandlingMapToEntityMapperTest.java /* * Copyright 2014-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.dbflute.dbmeta.valuemap; import java.util.HashMap; import java.util.Map; import java.util.Set; import org.dbflute.jdbc.Classification; import org.dbflute.jdbc.ClassificationMeta; import org.dbflute.unit.RuntimeTestCase; import org.dbflute.util.DfCollectionUtil; /** * @author jflute */ public class MetaHandlingMapToEntityMapperTest extends RuntimeTestCase { public void test_MapStringValueAnalyzer_analyzeOther_normalValue() throws Exception { // ## Arrange ## Map<String, Object> valueMap = new HashMap<String, Object>(); Object value = new Object(); valueMap.put("FOO_NAME", value); MetaHandlingMapToEntityMapper analyzer = new MetaHandlingMapToEntityMapper(valueMap); analyzer.init("FOO_NAME", "fooName", "FooName"); // ## Act ## Object actual = analyzer.analyzeOther(Object.class); // ## Assert ## assertEquals(value, actual); } public void test_MapStringValueAnalyzer_analyzeOther_classification() throws Exception { // ## Arrange ## Map<String, String> valueMap = new HashMap<String, String>(); valueMap.put("FOO_NAME", "bar"); MetaHandlingMapToEntityMapper analyzer = new MetaHandlingMapToEntityMapper(valueMap); analyzer.init("FOO_NAME", "fooName", "FooName"); // ## Act ## MockClassification actual = analyzer.analyzeOther(MockClassification.class); // ## Assert ## assertEquals(MockClassification.BAR, actual); } protected static enum MockClassification implements Classification { FOO, BAR; public String alias() { return null; } public String code() { return null; } public Set<String> sisterSet() { return DfCollectionUtil.emptySet(); } public static MockClassification codeOf(Object obj) { return obj instanceof String && obj.equals("bar") ? BAR : null; } public boolean inGroup(String groupName) { return false; } public Map<String, Object> subItemMap() { return DfCollectionUtil.emptyMap(); } public ClassificationMeta meta() { return null; } } }
"""API transports to inject messages into VUMI.""" from vumi.transports.api.api import HttpApiTransport from vumi.transports.api.oldapi import (OldSimpleHttpTransport, OldTemplateHttpTransport) __all__ = ['HttpApiTransport', 'OldSimpleHttpTransport', 'OldTemplateHttpTransport']
import numpy as np def calculate_trace_ratio(H): trace_ratios = [] for i in range(len(H.c_gamma)): trace_gamma = np.trace(H.c_gamma[i]) trace_sigma = np.trace(H.c_sigma[i]) if trace_sigma != 0: trace_ratios.append(trace_gamma / trace_sigma) else: trace_ratios.append(0.0) return trace_ratios
python transformers/examples/language-modeling/run_language_modeling.py --model_type gpt2 --tokenizer_name model-configs/1536-config --config_name model-configs/1536-config/config.json --train_data_file ../data/wikitext-103-raw/wiki.train.raw --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir train-outputs/512+512+512-N-VB/model --do_train --do_eval --evaluate_during_training --per_device_train_batch_size 3 --per_device_eval_batch_size 3 --num_train_epochs 10 --dataloader_drop_last --save_steps 500 --save_total_limit 20 --augmented --augmentation_function remove_all_but_nouns_and_verbs_first_third --train_function two_thirds_training --eval_function last_third_eval
#!/bin/sh # SUMMARY: Namespace stress with multiple instances of 5 concurrent long running TCP/IPv4 connections over a veth pair # LABELS: # REPEAT: set -e # Source libraries. Uncomment if needed/defined #. "${RT_LIB}" . "${RT_PROJECT_ROOT}/_lib/lib.sh" NAME=test-ns clean_up() { rm -rf ${NAME}-* } trap clean_up EXIT moby build -format kernel+initrd -name ${NAME} ../../common.yml test.yml RESULT="$(linuxkit run -cpus 2 ${NAME})" echo "${RESULT}" | grep -q "suite PASSED" exit 0
# encoding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8') import praw import base64 USERNAME = "WSBTip" PASSWORD = base64.b64decode(open("../../Password.txt").read()) # Not going to post the password in plain text class bot(object): def __init__(self, username, password): self.username = username self.password = password if __name__ == '__main__': WSBbot = bot(USERNAME, PASSWORD)
import React from 'react' import PropTypes from 'prop-types' import Features from '../components/Features' import Testimonials from '../components/Testimonials' import Pricing from '../components/Pricing' import Link from 'gatsby-link' import Header from '../components/Header' import Footer from '../components/Footer' export const SolutionsOverviewPageTemplate = ({ image, title, subtitle, cta, heading, description, intro, main, testimonials, fullImage, pricing, }) => ( <div> <Header title={title} subtitle={subtitle} cta={cta} image={image} /> <section className="section section--gradient"> <div className="container"> <div className="section"> <div className="columns"> <div className="column is-8 is-offset-2"> <div className="content"> <h2 id="payment-processing" className="is-size-3"> Credit &amp; debit card processing for faith based nonprofits </h2> <p>Everything you need to process credit card and e-check (ACH) transactions without the crazy fees. Most organizations save up to 50%. Easily signup for a merchant account to use with your existing platform or add our gateway to save even more for your online processing!</p> <Link className='button is-primary' to='/solutions/payment-processing'> <span>Learn More →</span> </Link> </div> </div> </div> </div> </div> </section> <section className="section has-background-light"> <div className="container"> <div className="section"> <div className="columns"> <div className="column is-8 is-offset-2"> <div className="content"> <h2 className="is-size-3"> A complete, innovative giving platform </h2> <p>Use our secure giving platform to help your organization increase giving, leveraging the same at cost credit and debit card processing. Allow your members to easily give via their computer, mobile phone, or iOS/Android app, while integrating with your existing Church Management software.</p> <Link className='button is-primary' to='/solutions/payment-processing'> <span>Learn More →</span> </Link> </div> </div> </div> </div> </div> </section> <Footer/> </div> ) SolutionsOverviewPageTemplate.propTypes = { image: PropTypes.string, title: PropTypes.string, subtitle: PropTypes.string, heading: PropTypes.string, description: PropTypes.string, intro: PropTypes.shape({ blurbs: PropTypes.array, }), main: PropTypes.shape({ heading: PropTypes.string, description: PropTypes.string, image1: PropTypes.object, image2: PropTypes.object, image3: PropTypes.object, }), testimonials: PropTypes.array, fullImage: PropTypes.string, pricing: PropTypes.shape({ heading: PropTypes.string, description: PropTypes.string, plans: PropTypes.array, }), } const SolutionsOverviewPage = ({ data }) => { const { frontmatter } = data.markdownRemark return ( <SolutionsOverviewPageTemplate image={frontmatter.image} title={frontmatter.title} subtitle={frontmatter.subtitle} cta={frontmatter.cta} heading={frontmatter.heading} description={frontmatter.description} intro={frontmatter.intro} main={frontmatter.main} testimonials={frontmatter.testimonials} fullImage={frontmatter.full_image} pricing={frontmatter.pricing} /> ) } SolutionsOverviewPage.propTypes = { data: PropTypes.shape({ markdownRemark: PropTypes.shape({ frontmatter: PropTypes.object, }), }), } export default SolutionsOverviewPage export const productPageQuery = graphql` query SolutionsOverviewPage($id: String!) { markdownRemark(id: { eq: $id }) { frontmatter { title subtitle cta { ctaText ctaLink ctaType } image heading description intro { blurbs { image text } heading description } main { heading description image1 { alt image } image2 { alt image } image3 { alt image } } testimonials { author quote } full_image pricing { heading description plans { description items plan price } } } } } `
#!/bin/sh cd -- "$(dirname "$BASH_SOURCE")" platforms=() platforms[0]="android|an|8" platforms[1]="ios|io|9" noResources=$1 echo "<<< Building resources for platforms >>>" for platform in ${platforms[@]} do cd build_sources bash run.sh "platform=${platform}" $noResources cd .. cd make_relativeUrls bash run.sh "platform=${platform}" cd .. done echo "<<< Updating version >>>" cd update_version bash run.sh #read -p "Press enter to continue..."
<reponame>spt-development/spt-development-logging-spring-boot<filename>spt-development-logging-spring-boot-autoconfigure/src/test/java/com/spt/development/logging/spring/boot/autoconfigure/LoggingSpringAutoConfigurationTest.java package com.spt.development.logging.spring.boot.autoconfigure; import com.spt.development.logging.spring.JmsListenerLogger; import com.spt.development.logging.spring.RepositoryLogger; import com.spt.development.logging.spring.RestControllerLogger; import com.spt.development.logging.spring.ServiceLogger; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.MatcherAssert.assertThat; class LoggingSpringAutoConfigurationTest { private AnnotationConfigApplicationContext context; @BeforeEach void init() { this.context = new AnnotationConfigApplicationContext(); } @AfterEach void closeContext() { if (this.context != null) { this.context.close(); } } @Test void register_happyPath_shouldRegisterLoggers() { context.register(LoggingSpringAutoConfiguration.class); context.refresh(); assertThat(context.getBean(RestControllerLogger.class), is(notNullValue())); assertThat(context.getBean(JmsListenerLogger.class), is(notNullValue())); assertThat(context.getBean(ServiceLogger.class), is(notNullValue())); assertThat(context.getBean(RepositoryLogger.class), is(notNullValue())); } }
<filename>FitBitPlayground/FitBitPlayground.py import fitbit import json, pathlib from datetime import datetime import arrow import config token_file = "tokens.json" intraday_file_format_string = 'data/{}_intraday.json' activity_file_format_string = 'data/{}_activity.json' sleep_file_format_string = 'data/{}_sleep.json' full_day_log = 'data/_gather_log.json' def update_tokens(token_dict): print('tokens refreshing') with open(token_file, 'w') as outfile: json.dump(token_dict, outfile) def get_tokens(): p = pathlib.Path(token_file) try: with p.open() as f: return json.load(f) except OSError: print('No tokens file found, using manually-collected defaults...') d = {} d['access_token'] = 'YOUR TOKEN HERE - use gather_keys_oauth2.py' d['refresh_token'] = 'YOUR TOKEN HERE' #d['scope'] = ['weight', 'location', 'heartrate', 'profile', 'settings', 'activity', 'nutrition', 'sleep', 'social'] #d['user_id'] = '5WYKXC' d['expires_at'] = 1501906494.5773776 #Replace with value from gather_keys with open(token_file, 'w') as outfile: json.dump(d, outfile) return d def save_json(fn, data): with open(fn, 'w') as outfile: json.dump(data, outfile) def gather_data(day): print("Gathering fitbit data for {:YYYY-MM-DD}...".format(day)) tokens = get_tokens() fbc = fitbit.Fitbit(config.client_id, config.client_secret,access_token=tokens['access_token'], refresh_token=tokens['refresh_token'], expires_at=tokens['expires_at'], refresh_cb=update_tokens) range = day.span('day') day_str = day.format('YYYY-MM-DD') id = fbc.intraday_time_series('activities/steps', detail_level='15min', start_time = range[0], end_time=range[1]) data_file = intraday_file_format_string.format(day_str) save_json(data_file, id) s = fbc.sleep() data_file = sleep_file_format_string.format(day_str) save_json(data_file, s) act = fbc.activity_stats() data_file = activity_file_format_string.format(day_str) save_json(data_file, act) def get_devices(): tokens = get_tokens() fbc = fitbit.Fitbit(config.client_id, config.client_secret,access_token=tokens['access_token'], refresh_token=tokens['refresh_token'], expires_at=tokens['expires_at'], refresh_cb=update_tokens) devs = fbc.get_devices() return devs def last_sync_date(): devs = get_devices() last_sync = max([arrow.get(d['lastSyncTime']) for d in devs]) return last_sync def gather_recent_full_data(): ''' Gets all full daily fitbit data available in between the last full date and the most recent full date. Intended to be run once (or more) a day. ''' data_days = [] try: with open(full_day_log) as f: data_days = json.load(f) except OSError: pass#data_days.append(arrow.now().shift(days=-1).span("day")[0].for_json()) try: last_full_day = max([arrow.get(d) for d in data_days]) except ValueError: #First run, hack last full day print("First run detected.") last_full_day = arrow.now().shift(days=-2).span("day")[0] last_sync = last_sync_date() print("Last gathered data: {:YYYY-MM-DD}, Last sync: {:YYYY-MM-DD HH:mm}".format(last_full_day, last_sync)) ranges = arrow.Arrow.span_range('day', last_full_day.shift(days=1), last_sync.shift(days=-1)) print("Plan to gather data for {} days...".format(len(ranges))) for r in ranges: gather_data(r[0]) data_days.append(r[0].for_json()) with open(full_day_log, 'w') as outfile: json.dump(data_days, outfile) if __name__ == '__main__': #realtime data #gather_data(arrow.now()) #daily data gather_recent_full_data()
<gh_stars>1-10 "use strict"; var jQuery = require("jquery"); var compareVersions = require("../core/utils/version").compare; var errors = require("../core/utils/error"); var useJQuery = require("./jquery/use_jquery")(); if(useJQuery && compareVersions(jQuery.fn.jquery, [1, 10]) < 0) { throw errors.Error("E0012"); } require("./jquery/renderer"); require("./jquery/hooks"); require("./jquery/deferred"); require("./jquery/hold_ready"); require("./jquery/events"); require("./jquery/easing"); require("./jquery/element_data"); require("./jquery/element"); require("./jquery/component_registrator"); require("./jquery/ajax");
def generate_image_html(event_details: dict) -> str: event_shirt = event_details['event_shirt'] event_medal = event_details['event_medal'] html_code = f''' <div class="figure"> <img class="figure-img img-fluid rounded" src="../storage/storage/event_shirts/{event_shirt}" alt=""> </div> <h4>Medal Photo</h4> <div class="figure"> <img class="figure-img img-fluid rounded" src="../storage/storage/event_medals/{event_medal}"> </div> ''' return html_code
def selectGreaterThan(arr, threshold): # Create an empty array result = [] # Iterate through the array for el in arr: # If the element is greater than the given threshold, add it to the result if el > threshold: result.append(el) # Return the result return result
<gh_stars>0 import { EntityRepository, Repository } from 'typeorm'; import { CreateCourseDto } from './dto/create-course.dto'; import { Course } from './entities/course.entity'; @EntityRepository(Course) export class CourseRepository extends Repository<Course> { async saveCourse( createCourseDto: CreateCourseDto, course: Course = new Course(), ) { course.name = createCourseDto.name; course.description = createCourseDto.description; course.price = createCourseDto.price; await course.save(); return course; } }
package com.atjl.util.thread.task; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; public class WaitTask implements Runnable { private static final Logger logger = LoggerFactory.getLogger(WaitTask.class); private CountDownLatch countDownLatch; private String finishMsg; private String errMsg; private Long waitMs; public WaitTask(CountDownLatch countDownLatch, String finishMsg, String errMsg) { this.countDownLatch = countDownLatch; this.finishMsg = finishMsg; this.errMsg = errMsg; this.waitMs = null; } public WaitTask(CountDownLatch countDownLatch, String finishMsg, String errMsg, Long waitMs) { this.countDownLatch = countDownLatch; this.finishMsg = finishMsg; this.errMsg = errMsg; this.waitMs = waitMs; } @Override public void run() { try { if (this.waitMs != null) { countDownLatch.await(waitMs, TimeUnit.MILLISECONDS); } else { countDownLatch.await(); } logger.info(finishMsg); } catch (InterruptedException e) { logger.error(errMsg); } } }
<filename>packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/IInterfaceWithProperties.java package software.amazon.jsii.tests.calculator; public interface IInterfaceWithProperties extends software.amazon.jsii.JsiiSerializable { java.lang.String getReadOnlyString(); java.lang.String getReadWriteString(); void setReadWriteString(final java.lang.String value); // ================================================================== // Builder // ================================================================== static Builder builder() { return new Builder(); } /** * A fluent step builder class for {@link IInterfaceWithProperties}. * The {@link Build#build()} method will be available once all required properties are fulfilled. */ final class Builder { public ReadWriteStringStep withReadOnlyString(final java.lang.String value) { return new FullBuilder().withReadOnlyString(value); } public interface ReadWriteStringStep { /** * Sets the value for {@link IInterfaceWithProperties#getReadWriteString}. */ Build withReadWriteString(final java.lang.String value); } public interface Build { /** * @return a new {@link IInterfaceWithProperties} object, initialized with the values set on this builder. */ IInterfaceWithProperties build(); } final class FullBuilder implements ReadWriteStringStep, Build { private Jsii$Pojo instance = new Jsii$Pojo(); public ReadWriteStringStep withReadOnlyString(final java.lang.String value) { java.util.Objects.requireNonNull(value, "IInterfaceWithProperties#readOnlyString is required"); this.instance._readOnlyString = value; return this; } public Build withReadWriteString(final java.lang.String value) { java.util.Objects.requireNonNull(value, "IInterfaceWithProperties#readWriteString is required"); this.instance._readWriteString = value; return this; } public IInterfaceWithProperties build() { IInterfaceWithProperties result = this.instance; this.instance = new Jsii$Pojo(); return result; } } } /** * A PoJo (plain-old-java-object) class that implements {@link IInterfaceWithProperties}. */ final class Jsii$Pojo implements IInterfaceWithProperties { /** * Constructor used by builders. */ protected Jsii$Pojo() { } protected java.lang.String _readOnlyString; public java.lang.String getReadOnlyString() { return this._readOnlyString; } protected java.lang.String _readWriteString; public java.lang.String getReadWriteString() { return this._readWriteString; } public void setReadWriteString(final java.lang.String value) { this._readWriteString = value; } } /** * A proxy class which for javascript object literal which adhere to this interface. */ class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.IInterfaceWithProperties { protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) { super(mode); } public java.lang.String getReadOnlyString() { return this.jsiiGet("readOnlyString", java.lang.String.class); } public java.lang.String getReadWriteString() { return this.jsiiGet("readWriteString", java.lang.String.class); } public void setReadWriteString(final java.lang.String value) { this.jsiiSet("readWriteString", java.util.Objects.requireNonNull(value, "readWriteString is required")); } } }
<gh_stars>0 #include <algorithm> #include <cmath> #include <cstdlib> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; // https://www.reddit.com/r/dailyprogrammer/comments/4xy6i1/20160816_challenge_279_easy_uuencoding/ // INCOMPLETE string decToBinaryString(int decimal, int requiredLength) { string out = ""; while (decimal) { out = to_string(decimal & 1) + out; decimal >>= 1; } out = string(max(0, (requiredLength - (int)out.size()) ), '0') + out; return out; } int stringBinaryToDec(string binary) { int out; for (size_t i=0; i<binary.size(); i++) { if (binary[i] == '1') { out += pow(2, binary.size() - 1 - i); } } return out; } string uuencode(string message) { string encoded = "begin 644 file.txt\n"; string totalBinaryStr; // Break it down first for (int c : message) { string binaryStr = decToBinaryString(c, 8); totalBinaryStr += binaryStr; cout << c << " : " << binaryStr << endl; } cout << endl; cout << "totalBinaryStr: " << totalBinaryStr << endl; // Break totalBinaryStr into four groups of binary int quarterSize = totalBinaryStr.size() / 4; string lineString; for (int i=0; i<totalBinaryStr.size(); i += quarterSize) { string stringQuarter = totalBinaryStr.substr(i, quarterSize); // cout << "stringQuarter: " << stringQuarter << endl; int decimalQuarter = stringBinaryToDec(stringQuarter) + 32; lineString += decimalQuarter; cout << (char)decimalQuarter << endl; } lineString = char(45 + (int)lineString.size()) + lineString; cout << "lineString: " << lineString << endl; encoded += "`\nend\n"; cout << "Encoded: \n" << encoded << endl; return "A"; } int main() { string message; getline(cin, message); // if looksLikePath(message) open a file cout << uuencode(message) << endl; }
#!/bin/bash # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. mkdir -p sample-output USERDIR=$(pwd) SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" # Run from the root dir of emp_games so the sample paths exist cd "$SCRIPT_DIR" || exit docker run --rm \ -v "$SCRIPT_DIR/../../fbpmp/emp_games/attribution/shard_aggregator/test/ad_object_format:/input" \ -v "$USERDIR/sample-output:/output" \ --network=host emp-games:latest \ shard_aggregator \ --party=1 \ --input_base_path=/input/publisher_attribution_correctness_clickonly_clicktouch_out.json \ --output_path=/output/publisher_shard_aggregation_out.json \ --num_shards=2 \ --first_shard_index=0 \ 2>&1 publisher & # Fork to background so "Bob" can run below docker run --rm \ -v "$SCRIPT_DIR/../../fbpmp/emp_games/attribution/shard_aggregator/test/ad_object_format:/input" \ -v "$USERDIR/sample-output:/output" \ --network=host emp-games:latest \ shard_aggregator \ --party=2 \ --input_base_path=/input/partner_attribution_correctness_clickonly_clicktouch_out.json \ --output_path=/output/partner_shard_aggregation_out.json \ --num_shards=2 \ --first_shard_index=0 \ --server_ip=127.0.0.1
<reponame>smagill/opensphere-desktop package io.opensphere.core.english; import org.apache.commons.text.WordUtils; /** An English word. */ public class Word { /** The word. */ private final String myWord; /** * Constructor. * * @param word the word */ public Word(String word) { myWord = word; } /** * Returns the normal case version of the word. * * @return the normal case version of the word */ public String normalCase() { return myWord; } /** * Returns the title case version of the word. * * @return the title case version of the word */ public String titleCase() { return WordUtils.capitalize(myWord); } @Override public String toString() { return myWord; } }
#!/usr/bin/env bash echo ">> Installing system dependencies..." sudo apt-get update -qq && sudo apt-get install -qq \ zsh \ git-core HOMESHICK_DIR="$HOME"/.homesick/repos/homeshick # Get Homeshick. if [ ! -d "$HOMESHICK_DIR" ]; then echo ">> Cloning Homeshick into $HOMESHICK_DIR..." git clone -q git://github.com/andsens/homeshick.git $HOMESHICK_DIR fi source $HOMESHICK_DIR/homeshick.sh # Get dotfiles # homeshick --batch clone git@github.com:rdesmartin/dotfiles.git homeshick --batch clone https://github.com/rdesmartin/dotfiles.git homeshick link --force # Get FZF and install it. if [ ! -d "$HOME/.fzf" ]; then echo ">> Cloning FZF into ~/.fzf..." git clone -q https://github.com/junegunn/fzf.git ~/.fzf $HOME/.fzf/install fi # Install Vim bundles vim +PluginInstall +qall # Change shell echo ">> Provide your password to change shell to zsh." chsh -s /usr/bin/zsh echo ">> Done!"
def generator(num): if num < 0: yield 'negativo' def test_generator(num): gen = generator(num) for val in gen: print(val) # Test cases test_generator(-5) # Output: negativo test_generator(10) # Output:
<reponame>TrueTeam/ESports2<filename>app/src/main/java/com/example/mypc/esports2/main/MyTeamActivity.java package com.example.mypc.esports2.main; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.ListView; import android.widget.RelativeLayout; import android.widget.TextView; import com.example.mypc.esports2.R; import com.example.mypc.esports2.base.BaseActivity; import com.example.mypc.esports2.main.creatteam.CreatTeamActivity; import com.example.mypc.esports2.main.joininteam.JoinInTeamActivity; import butterknife.BindView; import butterknife.OnClick; public class MyTeamActivity extends BaseActivity { @BindView(R.id.on_back_image) ImageView onBackImage; @BindView(R.id.tv_add_team) ImageView tvAddTeam; @BindView(R.id.rl_layout_team) RelativeLayout rlLayoutTeam; @BindView(R.id.lv_team_list) ListView lvTeamList; @BindView(R.id.btn_add_team) Button btnAddTeam; @BindView(R.id.tv_empty_view) TextView tvEmptyView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); lvTeamList.setEmptyView(tvEmptyView); } @Override public int getLayoutID() { return R.layout.activity_my_team; } @OnClick({R.id.on_back_image, R.id.tv_add_team, R.id.btn_add_team}) public void onClick(View view) { switch (view.getId()) { case R.id.on_back_image: onBackPressed(); break; case R.id.tv_add_team: startActivity(new Intent(MyTeamActivity.this,JoinInTeamActivity.class)); break; case R.id.btn_add_team: startActivity(new Intent(MyTeamActivity.this, CreatTeamActivity.class)); break; } } }
import argparse import datetime import json import requests def date(): return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") def get_args(): arg_parser = argparse.ArgumentParser(description='query_kegg.py: \ creates a JSON dump of the KEGG API') arg_parser.add_argument('pathway_id', type=str, help='ID of the pathway to retrieve') arg_parser.add_argument('output_file', type=str, help='Name of the output JSON file') return arg_parser.parse_args() def retrieve_pathway_info(pathway_id): url = f'http://rest.kegg.jp/get/{pathway_id}/kgml' response = requests.get(url) if response.status_code == 200: return response.text else: return None def save_to_json(data, output_file): with open(output_file, 'w') as file: json.dump(data, file, indent=4) def main(): args = get_args() pathway_id = args.pathway_id output_file = args.output_file pathway_info = retrieve_pathway_info(pathway_id) if pathway_info: save_to_json(pathway_info, output_file) print(f'Pathway information saved to {output_file}') else: print(f'Failed to retrieve pathway information for ID: {pathway_id}') if __name__ == "__main__": main()
<reponame>andreapatri/cms_journal<filename>node_modules/@formatjs/intl-displaynames/dist/locale-data/it-VA.js /* @generated */ // prettier-ignore if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') { Intl.DisplayNames.__addLocaleData({"data":{},"availableLocales":["it-VA"],"aliases":{},"parentLocales":{}}) }
#!/bin/bash # Run this from the root directory of the project set -ex if [ -d "doc/api" ]; then rm -r doc/api; fi; pdoc ./ephys_nlm --output-dir doc/api
#!/bin/bash # set -eo pipefail # shopt -s nullglob # 删除配置文件中的空格 sed -i "s/ = /=/g" /etc/fdfs/*.conf sed -i "s/ =/=/g" /etc/fdfs/*.conf # 配置 tracker 的路径 sed -i "s|/home/yuqing/fastdfs|$TRACKER_BASE_PATH|g" /etc/fdfs/tracker.conf # 配置 storage 的路径 sed -i "s|/home/yuqing/fastdfs|$STORAGE_BASE_PATH|g" /etc/fdfs/storage.conf sed -i "s|/home/yuqing/fastdfs|$STORAGE_BASE_PATH|g" /etc/fdfs/client.conf sed -i "s|^store_path0.*$|store_path0=$STORAGE_BASE_PATH$PATH0|g" /etc/fdfs/storage.conf # 配置nginx端口 sed -i "s/http.server_port=.*$/http.server_port=$NGINX_WEB_PORT/g" /etc/fdfs/storage.conf # storage 端口 sed -i "s/^port=.*$/port=$STORAGE_SERVER_PORT/g" /etc/fdfs/storage.conf # storage 中的 groupname sed -i "s/^group_name=group1.*$/group_name=$STORAGE_GROUP_NAME/g" /etc/fdfs/storage.conf # client.conf 中 tracker_server 的相关配置: ip地址和端口 sed -i "s/http.tracker_server_port=.*$/http.tracker_server_port=$NGINX_WEB_PORT/g" /etc/fdfs/client.conf sed -i "s/^tracker_server=.*$/tracker_server=$TRACKER_SERVER_IP_ADDRESS:$TRACKER_SERVER_PORT/g" /etc/fdfs/client.conf sed -i "s/^http.tracker_server_port=.*$/http.tracker_server_port=$NGINX_WEB_PORT/g" /etc/fdfs/client.conf # storage.conf 中 tracker 节点的配置 sed -i "s/^tracker_server=.*$/tracker_server=${TRACKER_SERVER_IP_ADDRESS}:${TRACKER_SERVER_PORT}/g" /etc/fdfs/storage.conf # storage.conf 配置子文件数量,默认是256 sed -i "s/^subdir_count_per_path=.*$/subdir_count_per_path=$STORAGE_SUBDIR_COUNT_PER_PATH/g" /etc/fdfs/storage.conf # nginx使用 mod_fastdfs.conf 配置 sed -i "s|^store_path0.*$|store_path0=$STORAGE_BASE_PATH$PATH0|g" /etc/fdfs/mod_fastdfs.conf sed -i "s|^url_have_group_name=.*$|url_have_group_name= true|g" /etc/fdfs/mod_fastdfs.conf sed -i "s/^tracker_server=.*$/tracker_server=$TRACKER_SERVER_IP_ADDRESS:$TRACKER_SERVER_PORT/g" /etc/fdfs/mod_fastdfs.conf sed -i "s/listen.*$/listen $NGINX_WEB_PORT;/g" /usr/local/nginx/conf/nginx.conf # http.conf 的默认图片配置 sed -i "s|^http.anti_steal.token_check_fail.*|http.anti_steal.token_check_fail=/etc/fdfs/anti-steal.jpg|g" /etc/fdfs/http.conf # 创建需要的文件目录 # $TRACKER_BASE_PATH: tracker的根目录,其下放 logs和data # $STORAGE_BASE_PATH: storage的根目录,logs和data # $STORAGE_BASE_PATH$PATH0: storage的存储目录 # $STORAGE_BASE_PATH/data: 这个目录要存在,否则报错 mkdir -p $TRACKER_BASE_PATH $STORAGE_BASE_PATH $STORAGE_BASE_PATH$PATH0 $STORAGE_BASE_PATH/data SERVER=$1 # 如果启动命令中有 tracker,则启动tracker if [ "${SERVER}" == "tracker" ]; then /etc/init.d/fdfs_trackerd start tail -F /tracker/logs/trackerd.log # 如果启动命令中为storage,则启动stroage和nginx elif [[ "${SERVER}" == "storage" ]]; then /etc/init.d/fdfs_storaged start /usr/local/nginx/sbin/nginx tail -F /storage/logs/storaged.log else # 命令为空,默认启动所有的服务 /etc/init.d/fdfs_trackerd start /etc/init.d/fdfs_storaged start # /usr/local/nginx/sbin/nginx # tail -F /usr/local/nginx/logs/access.log fi exec "$@"
// // RTreeND.hpp // AxiSEM3D // // Created by <NAME> on 9/7/19. // Copyright © 2019 <NAME>. All rights reserved. // // boost RTree for searching nearest points #ifndef RTreeND_hpp #define RTreeND_hpp #pragma clang diagnostic push #pragma clang diagnostic ignored "-Weverything" #include <boost/geometry.hpp> #pragma clang diagnostic pop #include "NetCDF_Reader.hpp" #include "mpi.hpp" #include "io.hpp" #include "timer.hpp" #include "eigen_tools.hpp" // D: dimensions, must be 1 or 2 or 3 // V: number of variables // T: type of variables template <int D, int V, typename T> class RTreeND { ///////////// typedef ///////////// // coordinates typedef typename std::conditional<D == 1, Eigen::Matrix<double, Eigen::Dynamic, D>, Eigen::Matrix<double, Eigen::Dynamic, D, Eigen::RowMajor>>::type DMatXD_RM; // data typedef typename std::conditional<V == 1, Eigen::Matrix<T, Eigen::Dynamic, V>, Eigen::Matrix<T, Eigen::Dynamic, V, Eigen::RowMajor>>::type TMatXV_RM; // data unit typedef Eigen::Matrix<T, 1, V> TRowV; typedef Eigen::Matrix<double, 1, V> DRowV; // location typedef boost::geometry::model::point<double, D, boost::geometry::cs::cartesian> RTreeLoc; // leaf typedef std::pair<RTreeLoc, TRowV> RTreeLeaf; ///////////// cs array to RTreeLoc ///////////// // 1D template <int R = D, typename ArrayCS> static typename std::enable_if<R == 1, RTreeLoc>::type toRTreeLoc(const ArrayCS &loc) { return RTreeLoc(loc[0]); } // 2D template <int R = D, typename ArrayCS> static typename std::enable_if<R == 2, RTreeLoc>::type toRTreeLoc(const ArrayCS &loc) { return RTreeLoc(loc[0], loc[1]); } // 3D template <int R = D, typename ArrayCS> static typename std::enable_if<R == 3, RTreeLoc>::type toRTreeLoc(const ArrayCS &loc) { return RTreeLoc(loc[0], loc[1], loc[2]); } ///////////// public ///////////// public: // constructor RTreeND() = default; // constructor RTreeND(const std::string &ncFile, const std::string &coordVarName, const std::array<std::pair<std::string, double>, V> &varInfo) { // read data DMatXD_RM ctrlCrds; TMatXV_RM ctrlVals; timer::gPreloopTimer.begin("Reading control-point data"); timer::gPreloopTimer.message("data file: " + io::popInputDir(ncFile)); if (mpi::root()) { // open NetCDF_Reader reader(io::popInputDir(ncFile)); // read coords reader.readMatrixDouble(coordVarName, ctrlCrds); // read data ctrlVals.resize(ctrlCrds.rows(), V); for (int ivar = 0; ivar < V; ivar++) { // read to double eigen::DColX ctrlVal; reader.readMatrixDouble(varInfo[ivar].first, ctrlVal); ctrlVal *= varInfo[ivar].second; // round if (std::is_integral<T>::value) { ctrlVal = ctrlVal.array().round(); } // cast to Ts ctrlVals.col(ivar) = ctrlVal.template cast<T>(); } } timer::gPreloopTimer.ended("Reading control-point data"); // broadcast timer::gPreloopTimer.begin("Broadcasting control-point data"); mpi::bcastEigen(ctrlCrds); mpi::bcastEigen(ctrlVals); // memory info timer::gPreloopTimer.message (eigen_tools::memoryInfo(ctrlCrds, "coordinates at control points")); timer::gPreloopTimer.message (eigen_tools::memoryInfo(ctrlVals, "values at control points")); timer::gPreloopTimer.ended("Broadcasting control-point data"); // build RTree timer::gPreloopTimer.begin("Building R-tree"); addLeafs(ctrlCrds, ctrlVals); timer::gPreloopTimer.ended("Building R-tree"); } // add a leaf template <typename ArrayCS> void addLeaf(const ArrayCS &loc, const TRowV &val) { mRTree.insert({toRTreeLoc(loc), val}); } // add scalar, only for V = 1 template <int VN = V, typename ArrayCS> typename std::enable_if<VN == 1, void>::type addLeaf(const ArrayCS &loc, T val) { static TRowV oneVal; oneVal(0) = val; addLeaf(loc, oneVal); } // add leafs void addLeafs(const DMatXD_RM &locs, const TMatXV_RM &vals) { for (int ir = 0; ir < locs.rows(); ir++) { mRTree.insert({toRTreeLoc(locs.row(ir)), vals.row(ir)}); } } // query // difficult to make this collective template <typename ArrayCS> void query(const ArrayCS &loc, int count, std::vector<double> &dists, std::vector<TRowV> &vals) const { // location const RTreeLoc &rloc = toRTreeLoc(loc); // KNN query std::vector<RTreeLeaf> leafs; mRTree.query(boost::geometry::index::nearest(rloc, count), std::back_inserter(leafs)); // get distance dists.clear(); dists.reserve(count); std::transform(leafs.begin(), leafs.end(), std::back_inserter(dists), [&rloc](const auto &leaf) { return boost::geometry::distance(leaf.first, rloc);}); // get values vals.clear(); vals.reserve(count); std::transform(leafs.begin(), leafs.end(), std::back_inserter(vals), [](const auto &leaf) {return leaf.second;}); } // compute template <typename ArrayCS> TRowV compute(const ArrayCS &loc, int count, double maxDistInRange, const TRowV &valOutOfRange, double distTolExact) const { // query static std::vector<double> dists; static std::vector<TRowV> vals; query(loc, count, dists, vals); // average vaules by inverse distance double invDistSum = 0.; static DRowV valTarget; valTarget.setZero(); int numInRange = 0; for (int ip = 0; ip < dists.size(); ip++) { // exactly on a leaf if (dists[ip] < distTolExact) { return vals[ip]; } // out of range if (dists[ip] > maxDistInRange) { continue; } // weight by inverse distance invDistSum += 1. / dists[ip]; valTarget += vals[ip].template cast<double>() / dists[ip]; numInRange++; } // out of range if (numInRange == 0) { return valOutOfRange; } // average and round valTarget /= invDistSum; if (std::is_integral<T>::value) { valTarget = valTarget.array().round(); } return valTarget.template cast<T>(); } // compute scalar, only for V = 1 template <int VN = V, typename ArrayCS> typename std::enable_if<VN == 1, T>::type compute(const ArrayCS &loc, int count, double maxDistInRange, T valOutOfRange, double distTolExact) const { static TRowV oneVal; oneVal(0) = valOutOfRange; return compute(loc, count, maxDistInRange, oneVal, distTolExact)(0); } // size int size() const { return (int)mRTree.size(); } // get all values TMatXV_RM getAllValues() const { // get values std::vector<TRowV> vals; std::transform(mRTree.begin(), mRTree.end(), std::back_inserter(vals), [](const auto &leaf) {return leaf.second;}); // cast to matrix TMatXV_RM mat(vals.size(), V); for (int ip = 0; ip < vals.size(); ip++) { mat.row(ip) = vals[ip]; } return mat; } private: // rtree boost::geometry::index::rtree<RTreeLeaf, boost::geometry::index::quadratic<16>> mRTree; }; #endif /* RTreeND_hpp */
<filename>config/initializers/warden.rb Rails.application.middleware.insert_after ActionDispatch::Flash, Warden::Manager do |config| config.scope_defaults :default, strategies: [:github], config: { client_id: ENV["GITHUB_CLIENT_ID"], client_secret: ENV["GITHUB_SECRET"], redirect_uri: '/oauth/github/callback' } config.scope_defaults :private, strategies: [:github], config: { client_id: ENV["GITHUB_CLIENT_ID"], client_secret: ENV["GITHUB_SECRET"], scope: 'read:org,repo,user:email', redirect_uri: '/oauth/github/callback' } config.scope_defaults :public, strategies: [:github], config: { client_id: ENV["GITHUB_CLIENT_ID"], client_secret: ENV["GITHUB_SECRET"], scope: 'read:org,public_repo,user:email', redirect_uri: '/oauth/github/callback' } config.failure_app = Rails.application.routes end Warden::Manager.serialize_from_session do |key| Rails.logger.debug ["Warden::Manager.serialize_from_session", key] user = Warden::GitHub::Verifier.load(key) Rails.logger.debug ["Warden::Manager.serialize_from_session", user] user end Warden::Manager.serialize_into_session do |user| Rails.logger.debug ["Warden::Manager.serialize_into_session", user] Warden::GitHub::Verifier.dump(user) end require 'uri' module Warden module GitHub class Config alias_method :base_normalized_uri, :normalized_uri def normalized_uri(uri_or_path) uri = base_normalized_uri(uri_or_path) app_name = ENV["HEROKU_APP_NAME"] parent_app_name = ENV["HEROKU_PARENT_APP_NAME"] Rails.logger.info "Warden Override: #{app_name} => #{parent_app_name}" if parent_app_name && parent_app_name != app_name uri.host.sub! app_name, parent_app_name uri.query = URI.encode_www_form("APP_NAME" => app_name) end Rails.logger.info "Warden Override: #{uri}" uri end end end end class Huboard class Warden class AppRedirect def initialize(app, params={}) @app = app @params = params end def call(env) uri = Addressable::URI.parse(env['REQUEST_URI']) app_name = uri.query_values['APP_NAME'] if uri.query_values parent_app_name = ENV['HEROKU_APP_NAME'] Rails.logger.info "AppRedirect: #{parent_app_name} => #{app_name}" if app_name if app_name && parent_app_name uri.query_values = uri.query_values(Array).reject { |kvp| kvp[0] == 'APP_NAME' } unless !uri.query_values app_redirect = "#{env['rack.url_scheme']}://#{env['HTTP_HOST'].sub(parent_app_name, app_name)}#{uri}" Rails.logger.info "AppRedirect to #{app_redirect}" return [302, {"Location" => app_redirect}, self] end @app.call env end end end end Rails.application.middleware.insert_before Warden::Manager, Huboard::Warden::AppRedirect
<filename>src/index.ts<gh_stars>0 export type { IConnectProps } from "./createConnect"; export { Connect, createConnect } from "./createConnect"; export { createHook } from "./createHook"; export type { IMapStateToProps } from "./IMapStateToProps"; export type { IMapStateToFunctions } from "./IMapStateToFunctions";
import React from 'react'; function App() { const users = [ { id: 1, firstName: 'John', lastName: 'Smith', email: 'johnsmith@email.com', country: 'USA' }, { id: 2, firstName: 'Roshi', lastName: 'Nakamoto', email: 'roshin@email.com', country: 'Japan' }, { id: 3, firstName: 'Ash', lastName: 'Ketchum', email: 'ashketchum@email.com', country: 'USA' }, { id: 4, firstName: 'Misty', lastName: 'Waterflower', email: 'misty@email.com', country: 'USA' }, { id: 5, firstName: 'Delia', lastName: 'Ketchum', email: 'delia@email.com', country: 'USA' } ]; return ( <div> <h1>User List</h1> <table> <thead> <tr> <th>Name</th> <th>Email</th> <th>Country</th> </tr> </thead> <tbody> { users.map(user => ( <tr key={user.id}> <td>{user.firstName} {user.lastName}</td> <td>{user.email}</td> <td>{user.country}</td> </tr> ))} </tbody> </table> </div> ) } export default App;
<gh_stars>0 /* * Copyright (c) 2010, <NAME> * All rights reserved. * * Made available under the BSD license - see the LICENSE file */ package sim.components; /* * A class to represent a credit signal, this is transmitted * back up a link in a credit loop to inform of a new fre buffer space */ public class Credit extends Signal { private int m_vc; public Credit(int vc) { super(); m_vc = vc; } public String toString() { return "C["+m_vc+"]"; } public void setVC(int vc) { m_vc = vc; } public int getVC() { return m_vc; } }
class Button { constructor( rootElement, buttonName ) { this.button = rootElement.querySelector( 'input[name="' + buttonName + '"]' ); } addClickEventListener( onClick ) { this.button.addEventListener( 'click', onClick ); } addSubmitEventListener( onSubmit ) { this.button.addEventListener( 'submit', onSubmit ); } } module.exports = Button;
#当前所在服务器A,需要复制的文件为file1, file2, file3 #B服务器用户为user,SSH端口为22022,目标路径为/var/www: scp file1 file2 file3 -P22022 user@B:/var/www/
class AddStatusAndNameToSchedule < ActiveRecord::Migration def self.up add_column :schedules, :name, :string add_column :schedules, :status, :string end def self.down remove_column :schedules, :name remove_column :schedules, :status end end
#! /bin/bash # Copyright (C) 2008-2009 Google. All Rights Reserved. # # Amit Singh <singh@> # Repurposes code from several earlier scripts by Ted Bonkenburg. # PATH=/Developer/usr/sbin:/Developer/usr/bin:/Developer/Tools:/Developer/Applications:/sbin:/usr/sbin:/bin:/usr/bin export PATH # Configurables # # Beware: GNU libtool cannot handle directory names containing whitespace. # Therefore, do not set M_CONF_TMPDIR to such a directory. # readonly M_CONF_TMPDIR=/tmp readonly M_CONF_PRIVKEY=/etc/macfuse/private.der # Other constants # readonly M_PROGDESC="MacFUSE build tool" readonly M_PROGNAME=macfuse_buildtool readonly M_PROGVERS=1.0 readonly M_DEFAULT_VALUE=__default__ readonly M_CONFIGURATIONS="Debug Release" # default is Release readonly M_PLATFORMS="10.4 10.5 10.6 10.7" # default is native readonly M_PLATFORMS_REALISTIC="10.4 10.5" readonly M_TARGETS="clean dist examples lib libsrc reload smalldist swconfigure" readonly M_TARGETS_WITH_PLATFORM="examples lib libsrc smalldist swconfigure" readonly M_DEFAULT_PLATFORM="$M_DEFAULT_VALUE" readonly M_DEFAULT_TARGET="$M_DEFAULT_VALUE" readonly M_XCODE_VERSION_REQUIRED=3.1.1 # Globals # declare m_args= declare m_active_target="" declare m_configuration=Release declare m_developer=0 declare m_osname="" declare m_platform="$M_DEFAULT_PLATFORM" declare m_release="" declare m_shortcircuit=0 declare m_srcroot="" declare m_srcroot_platformdir="" declare m_stderr=/dev/stderr declare m_stdout=/dev/stdout declare m_suprompt=" invalid " declare m_target="$M_DEFAULT_TARGET" declare m_usdk_dir="" declare m_version_tiger="" declare m_version_leopard="" declare m_version_snowleopard="" declare m_xcode_version= # Other implementation details # readonly M_FSBUNDLE_NAME=fusefs.fs readonly M_INSTALL_RESOURCES_DIR=Install_resources readonly M_KEXT_ID=com.google.filesystems.fusefs readonly M_KEXT_NAME=fusefs.kext readonly M_KEXT_SYMBOLS=fusefs-symbols readonly M_LIBFUSE_SRC=fuse-current.tar.gz readonly M_LIBFUSE_PATCH=fuse-current-macosx.patch readonly M_LOGPREFIX=MacFUSEBuildTool readonly M_MACFUSE_PRODUCT_ID=com.google.filesystems.fusefs readonly M_PKGNAME_CORE="MacFUSE Core.pkg" readonly M_PKGNAME=MacFUSE.pkg readonly M_WANTSU="needs the Administrator password" readonly M_WARNING="*** Warning" function m_help() { cat <<__END_HELP_CONTENT $M_PROGDESC version $M_PROGVERS Copyright (C) 2008 Google. All Rights Reserved. Usage: $M_PROGNAME [-dhqsv] [-c configuration] [-p platform] -t target * configuration is one of: $M_CONFIGURATIONS (default is $m_configuration) * platform is one of: $M_PLATFORMS (default is the host's platform) * target is one of: $M_TARGETS * platforms can only be specified for: $M_TARGETS_WITH_PLATFORM The target keywords mean the following: clean clean all targets dist create a multiplatform distribution package examples build example file systems (e.g. fusexmp_fh and hello) lib build the user-space library (e.g. to run fusexmp_fh) libsrc unpack and patch the user-space library source reload rebuild and reload the kernel extension smalldist create a platform-specific distribution package swconfigure configure software (e.g. sshfs) for compilation Other options are: -d create a developer prerelease package instead of a regular release -q enable quiet mode (suppresses verbose build output) -s enable shortcircuit mode (useful for testing the build mechanism itself) -v report version numbers and quit __END_HELP_CONTENT return 0 } # m_version() # function m_version { echo "$M_PROGDESC version $M_PROGVERS" m_set_platform m_set_srcroot "$m_platform" local mv_platform_dirs=`ls -d "$m_srcroot"/core/10.*` for i in $mv_platform_dirs do local mv_release=`awk '/#define[ \t]*MACFUSE_VERSION_LITERAL/ {print $NF}' "$i/fusefs/common/fuse_version.h"` if [ ! -z "$mv_release" ] then echo "Platform source '$i': MacFUSE version $mv_release" fi done return 0 } # m_log(msg) # function m_log() { printf "%-30s: %s\n" "$M_LOGPREFIX($m_active_target)" "$*" } # m_warn(msg) # function m_warn() { echo "$M_WARNING: $*" } # m_exit_on_error(errmsg) # function m_exit_on_error() { if [ "$?" != 0 ] then local retval=$? echo "$M_LOGPREFIX($m_active_target) failed: $1" 1>&2 exit $retval fi # NOTREACHED } # m_set_suprompt(msg) # function m_set_suprompt() { m_suprompt="$M_LOGPREFIX($m_active_target) $M_WANTSU $*: " } # m_set_srcroot([platform]) # function m_set_srcroot() { local macfuse_dir="" local is_absolute_path=`echo "$0" | cut -c1` if [ "$is_absolute_path" == "/" ] then macfuse_dir="`dirname $0`/.." else macfuse_dir="`pwd`/`dirname $0`/.." fi pushd . > /dev/null cd "$macfuse_dir" || exit 1 macfuse_dir=`pwd` popd > /dev/null m_srcroot="$macfuse_dir" if [ "x$1" != "x" ] && [ "$1" != "$M_DEFAULT_PLATFORM" ] then m_srcroot_platformdir="$m_srcroot/core/$1" if [ ! -d "$m_srcroot_platformdir" ] then m_srcroot_platformdir="$M_DEFAULT_VALUE" m_warn "directory '$m_srcroot/$1' does not exist." fi fi return 0 } # m_set_platform() # function m_set_platform() { local retval=0 if [ "$m_platform" == "$M_DEFAULT_PLATFORM" ] then m_platform=`sw_vers -productVersion | cut -d . -f 1,2` fi # XXX For now if ( [ "$m_platform" == "10.6" ] || [ "$m_platform" == "10.7" ] ) then m_platform="10.5" fi case "$m_platform" in 10.4*) m_osname="Tiger" m_usdk_dir="/Developer/SDKs/MacOSX10.4u.sdk" ;; 10.5*) m_osname="Leopard" m_usdk_dir="/Developer/SDKs/MacOSX10.5.sdk" ;; 10.6*) m_osname="Snow Leopard" m_usdk_dir="/Developer/SDKs/MacOSX10.6.sdk" ;; 10.7*) m_osname="Lion" m_usdk_dir="/Developer/SDKs/MacOSX10.7.sdk" ;; *) m_osname="Unknown" m_usdk_dir="" retval=1 ;; esac return $retval } # m_build_pkg(pkgversion, install_srcroot, install_payload, pkgname, output_dir) # function m_build_pkg() { local bp_pkgversion=$1 local bp_install_srcroot=$2 local bp_install_payload=$3 local bp_pkgname=$4 local bp_output_dir=$5 local bp_infoplist_in="$bp_install_srcroot/Info.plist.in" local bp_infoplist_out="$bp_output_dir/Info.plist" local bp_descriptionplist="$bp_install_srcroot/Description.plist" # Fix up the Info.plist # sed -e "s/MACFUSE_VERSION_LITERAL/$bp_pkgversion/g" \ < "$bp_infoplist_in" > "$bp_infoplist_out" m_exit_on_error "cannot finalize Info.plist for package '$bp_pkgname'." # Get rid of .svn files from M_INSTALL_RESOURCES_DIR # (tar -C "$bp_install_srcroot" --exclude '.svn' -cpvf - \ "$M_INSTALL_RESOURCES_DIR" | tar -C "$bp_output_dir/" \ -xpvf - >$m_stdout 2>$m_stderr)>$m_stdout 2>$m_stderr m_exit_on_error "cannot migrate resources from '$M_INSTALL_RESOURCES_DIR'." # Make the package m_set_suprompt "to run packagemaker" sudo -p "$m_suprompt" \ packagemaker -build -p "$bp_output_dir/$bp_pkgname" \ -f "$bp_install_payload" -b "$M_CONF_TMPDIR" -ds -v \ -r "$bp_output_dir/$M_INSTALL_RESOURCES_DIR" -i "$bp_infoplist_out" \ -d "$bp_descriptionplist" >$m_stdout 2>$m_stderr m_exit_on_error "cannot create package '$bp_pkgname'." return 0 } # Prepare the user-space library source # function m_handler_libsrc() { m_active_target="libsrc" m_set_platform m_set_srcroot "$m_platform" local lib_dir="$m_srcroot"/core/"$m_platform"/libfuse if [ ! -d "$lib_dir" ] then false m_exit_on_error "cannot access directory '$lib_dir'." fi local kernel_dir="$m_srcroot"/core/"$m_platform"/fusefs if [ ! -d "$kernel_dir" ] then false m_exit_on_error "cannot access directory '$kernel_dir'." fi local package_dir=`tar -tzvf "$lib_dir/$M_LIBFUSE_SRC" | head -1 | awk '{print $NF}'` if [ "x$package_dir" == "x" ] then false m_exit_on_error "cannot determine MacFUSE library version." fi local package_name=`basename "$package_dir"` if [ "x$package_name" == "x" ] then false m_exit_on_error "cannot determine MacFUSE library version." fi rm -rf "$M_CONF_TMPDIR/$package_name" if [ "$1" == "clean" ] then local retval=$? m_log "cleaned (platform $m_platform)" return $retval fi m_log "initiating Universal build for $m_platform" tar -C "$M_CONF_TMPDIR" -xzvf "$lib_dir/$M_LIBFUSE_SRC" \ >$m_stdout 2>$m_stderr m_exit_on_error "cannot untar MacFUSE library source from '$M_LIBFUSE_SRC'." cd "$M_CONF_TMPDIR/$package_name" m_exit_on_error "cannot access MacFUSE library source in '$M_CONF_TMPDIR/$package_name'." m_log "preparing library source" patch -p1 < "$lib_dir/$M_LIBFUSE_PATCH" >$m_stdout 2>$m_stderr m_exit_on_error "cannot patch MacFUSE library source." echo >$m_stdout m_log "succeeded, results in '$M_CONF_TMPDIR/$package_name'." echo >$m_stdout return 0 } # Build the user-space library # function m_handler_lib() { m_active_target="lib" m_set_platform m_set_srcroot "$m_platform" local lib_dir="$m_srcroot"/core/"$m_platform"/libfuse if [ ! -d "$lib_dir" ] then false m_exit_on_error "cannot access directory '$lib_dir'." fi local kernel_dir="$m_srcroot"/core/"$m_platform"/fusefs if [ ! -d "$kernel_dir" ] then false m_exit_on_error "cannot access directory '$kernel_dir'." fi local package_dir=`tar -tzvf "$lib_dir/$M_LIBFUSE_SRC" | head -1 | awk '{print $NF}'` if [ "x$package_dir" == "x" ] then false m_exit_on_error "cannot determine MacFUSE library version." fi local package_name=`basename "$package_dir"` if [ "x$package_name" == "x" ] then false m_exit_on_error "cannot determine MacFUSE library version." fi rm -rf "$M_CONF_TMPDIR/$package_name" if [ "$1" == "clean" ] then local retval=$? m_log "cleaned (platform $m_platform)" return $retval fi m_log "initiating Universal build for $m_platform" tar -C "$M_CONF_TMPDIR" -xzvf "$lib_dir/$M_LIBFUSE_SRC" \ >$m_stdout 2>$m_stderr m_exit_on_error "cannot untar MacFUSE library source from '$M_LIBFUSE_SRC'." cd "$M_CONF_TMPDIR/$package_name" m_exit_on_error "cannot access MacFUSE library source in '$M_CONF_TMPDIR/$package_name'." m_log "preparing library source" patch -p1 < "$lib_dir/$M_LIBFUSE_PATCH" >$m_stdout 2>$m_stderr m_exit_on_error "cannot patch MacFUSE library source." m_log "configuring library source" /bin/sh ./darwin_configure.sh "$kernel_dir" >$m_stdout 2>$m_stderr m_exit_on_error "cannot configure MacFUSE library source for compilation." m_log "running make" make -j2 >$m_stdout 2>$m_stderr m_exit_on_error "make failed while compiling the MacFUSE library." echo >$m_stdout m_log "succeeded, results in '$M_CONF_TMPDIR/$package_name'." echo >$m_stdout return 0 } # Rebuild and reload the kernel extension # function m_handler_reload() { m_active_target="reload" # Argument validation would have ensured that we use native platform # for this target. m_set_platform m_set_srcroot "$m_platform" local kernel_dir="$m_srcroot/core/$m_platform/fusefs" if [ ! -d "$kernel_dir" ] then false m_exit_on_error "cannot access directory '$kernel_dir'." fi if [ -e "$M_CONF_TMPDIR/$M_KEXT_NAME" ] then m_set_suprompt "to remove old MacFUSE kext" sudo -p "$m_suprompt" rm -rf "$M_CONF_TMPDIR/$M_KEXT_NAME" m_exit_on_error "cannot remove old copy of MacFUSE kext." fi if [ -e "$M_CONF_TMPDIR/$M_KEXT_SYMBOLS" ] then m_set_suprompt "to remove old copy of MacFUSE kext symbols" sudo -p "$m_suprompt" rm -rf "$M_CONF_TMPDIR/$M_KEXT_SYMBOLS" m_exit_on_error "cannot remove old copy of MacFUSE kext symbols." fi if [ "$1" == "clean" ] then rm -rf "$kernel_dir/build/" local retval=$? m_log "cleaned (platform $m_platform)" return $retval fi m_log "initiating kernel extension rebuild/reload for $m_platform" kextstat -l -b "$M_KEXT_ID" | grep "$M_KEXT_ID" >/dev/null 2>/dev/null if [ "$?" == "0" ] then m_log "unloading kernel extension" m_set_suprompt "to unload MacFUSE kext" sudo -p "$m_suprompt" \ kextunload -v -b "$M_KEXT_ID" >$m_stdout 2>$m_stderr m_exit_on_error "cannot unload kext '$M_KEXT_ID'." fi cd "$kernel_dir" m_exit_on_error "failed to access the kext source directory '$kernel_dir'." m_log "rebuilding kext" xcodebuild -configuration Debug -target fusefs >$m_stdout 2>$m_stderr m_exit_on_error "xcodebuild cannot build configuration Debug for target fusefs." mkdir "$M_CONF_TMPDIR/$M_KEXT_SYMBOLS" m_exit_on_error "cannot create directory for MacFUSE kext symbols." cp -R "$kernel_dir/build/Debug/$M_KEXT_NAME" "$M_CONF_TMPDIR/$M_KEXT_NAME" m_exit_on_error "cannot copy newly built MacFUSE kext." m_set_suprompt "to set permissions on newly built MacFUSE kext" sudo -p "$m_suprompt" chown -R root:wheel "$M_CONF_TMPDIR/$M_KEXT_NAME" m_exit_on_error "cannot set permissions on newly built MacFUSE kext." m_log "reloading kext" m_set_suprompt "to load newly built MacFUSE kext" sudo -p "$m_suprompt" \ kextload -s "$M_CONF_TMPDIR/$M_KEXT_SYMBOLS" \ -v "$M_CONF_TMPDIR/$M_KEXT_NAME" >$m_stdout 2>$m_stderr m_exit_on_error "cannot load newly built MacFUSE kext." echo >$m_stdout m_log "checking status of kernel extension" kextstat -l -b "$M_KEXT_ID" echo >$m_stdout echo >$m_stdout m_log "succeeded, results in '$M_CONF_TMPDIR'." echo >$m_stdout return 0 } # Build examples from the user-space MacFUSE library # function m_handler_examples() { m_active_target="examples" m_set_platform m_set_srcroot "$m_platform" local lib_dir="$m_srcroot"/core/"$m_platform"/libfuse if [ ! -d "$lib_dir" ] then false m_exit_on_error "cannot access directory '$lib_dir'." fi local kernel_dir="$m_srcroot"/core/"$m_platform"/fusefs if [ ! -d "$kernel_dir" ] then false m_exit_on_error "cannot access directory '$kernel_dir'." fi local package_dir=`tar -tzvf "$lib_dir/$M_LIBFUSE_SRC" | head -1 | awk '{print $NF}'` if [ "x$package_dir" == "x" ] then false m_exit_on_error "cannot determine MacFUSE library version." fi local package_name=`basename "$package_dir"` if [ "x$package_name" == "x" ] then false m_exit_on_error "cannot determine MacFUSE library version." fi rm -rf "$M_CONF_TMPDIR/$package_name" if [ "$1" == "clean" ] then local retval=$? m_log "cleaned (platform $m_platform)" return $retval fi m_log "initiating Universal build for $m_platform" tar -C "$M_CONF_TMPDIR" -xzvf "$lib_dir/$M_LIBFUSE_SRC" \ >$m_stdout 2>$m_stderr m_exit_on_error "cannot untar MacFUSE library source from '$M_LIBFUSE_SRC'." cd "$M_CONF_TMPDIR/$package_name" m_exit_on_error "cannot access MacFUSE library source in '$M_CONF_TMPDIR/$package_name'." m_log "preparing library source" patch -p1 < "$lib_dir/$M_LIBFUSE_PATCH" >$m_stdout 2>$m_stderr m_exit_on_error "cannot patch MacFUSE library source." m_log "configuring library source" /bin/sh ./darwin_configure_ino64.sh "$kernel_dir" >$m_stdout 2>$m_stderr m_exit_on_error "cannot configure MacFUSE library source for compilation." cd example m_exit_on_error "cannot access examples source." local me_installed_lib="/usr/local/lib/libfuse_ino64.la" if [ "$m_platform" == "10.4" ] then me_installed_lib="/usr/local/lib/libfuse.la" fi perl -pi -e "s#../lib/libfuse.la#$me_installed_lib#g" Makefile m_exit_on_error "failed to prepare example source for build." m_log "running make" make -j2 >$m_stdout 2>$m_stderr m_exit_on_error "make failed while compiling the MacFUSE examples." echo >$m_stdout m_log "succeeded, results in '$M_CONF_TMPDIR/$package_name/example'." echo >$m_stdout return 0 } # Build a multiplatform distribution package # function m_handler_dist() { m_active_target="dist" if [ "$1" == "clean" ] then for m_p in $M_PLATFORMS_REALISTIC do m_platform="$m_p" m_handler_smalldist clean done m_active_target="dist" m_set_platform m_set_srcroot "$m_platform" rm -rf "$m_srcroot/core/autoinstaller/build" m_log "cleaned internal subtarget autoinstaller" rm -rf "$m_srcroot/core/prefpane/build" m_log "cleaned internal subtarget prefpane" m_release=`awk '/#define[ \t]*MACFUSE_VERSION_LITERAL/ {print $NF}' "$m_srcroot/core/$m_platform/fusefs/common/fuse_version.h" | cut -d . -f 1,2` if [ ! -z "$m_release" ] then if [ -e "$M_CONF_TMPDIR/macfuse-$m_release" ] then m_set_suprompt "to remove previous output packages" sudo -p "$m_suprompt" rm -rf "$M_CONF_TMPDIR/macfuse-$m_release" m_log "cleaned any previous output packages in '$M_CONF_TMPDIR'" fi fi return 0 fi m_log "initiating Universal build of MacFUSE" m_set_platform m_set_srcroot "$m_platform" m_log "configuration is '$m_configuration'" if [ "$m_developer" == "0" ] then m_log "packaging flavor is 'Mainstream'" else m_log "packaging flavor is 'Developer Prerelease'" fi m_log "locating MacFUSE private key" if [ ! -f "$M_CONF_PRIVKEY" ] then false m_exit_on_error "cannot find MacFUSE private key in '$M_CONF_PRIVKEY'." fi # Autoinstaller # local md_ai_builddir="$m_srcroot/core/autoinstaller/build" if [ "$m_shortcircuit" != "1" ] then rm -rf "$md_ai_builddir" # ignore any errors fi m_log "building the MacFUSE autoinstaller" pushd "$m_srcroot/core/autoinstaller" >/dev/null 2>/dev/null m_exit_on_error "cannot access the autoinstaller source." xcodebuild -configuration "$m_configuration" -target "Build All" \ >$m_stdout 2>$m_stderr m_exit_on_error "xcodebuild cannot build configuration $m_configuration for subtarget autoinstaller." popd >/dev/null 2>/dev/null local md_ai="$md_ai_builddir/$m_configuration/autoinstall-macfuse-core" if [ ! -x "$md_ai" ] then false m_exit_on_error "cannot find autoinstaller '$md_ai'." fi local md_plistsigner="$md_ai_builddir/$m_configuration/plist_signer" if [ ! -x "$md_plistsigner" ] then false m_exit_on_error "cannot find plist signer '$md_plistsigner'." fi # Create platform-Specific MacFUSE subpackages # for m_p in $M_PLATFORMS_REALISTIC do pushd . >/dev/null 2>/dev/null m_active_target="dist" m_platform="$m_p" m_log "building platform $m_platform" m_handler_smalldist popd >/dev/null 2>/dev/null done # Build the preference pane # local md_pp_builddir="$m_srcroot/core/prefpane/build" if [ "$m_shortcircuit" != "1" ] then rm -rf "$md_pp_builddir" # ignore any errors fi m_log "building the MacFUSE prefpane" pushd "$m_srcroot/core/prefpane" >/dev/null 2>/dev/null m_exit_on_error "cannot access the prefpane source." xcodebuild -configuration "$m_configuration" -target "MacFUSE" \ >$m_stdout 2>$m_stderr m_exit_on_error "xcodebuild cannot build configuration $m_configuration for subtarget prefpane." popd >/dev/null 2>/dev/null local md_pp="$md_pp_builddir/$m_configuration/MacFUSE.prefPane" if [ ! -d "$md_pp" ] then false m_exit_on_error "cannot find preference pane." fi cp "$md_ai" "$md_pp/Contents/MacOS" m_exit_on_error "cannot copy the autoinstaller to the prefpane bundle." # Build the container # m_active_target="dist" m_release=`awk '/#define[ \t]*MACFUSE_VERSION_LITERAL/ {print $NF}' "$m_srcroot/core/$m_platform/fusefs/common/fuse_version.h" | cut -d . -f 1,2` m_exit_on_error "cannot get MacFUSE release version." local md_macfuse_out="$M_CONF_TMPDIR/macfuse-$m_release" local md_macfuse_root="$md_macfuse_out/pkgroot/" if [ -e "$md_macfuse_out" ] then m_set_suprompt "to remove a previously built container package" sudo -p "$m_suprompt" rm -rf "$md_macfuse_out" # ignore any errors fi m_log "initiating distribution build" local md_platforms="" local md_platform_dirs=`ls -d "$M_CONF_TMPDIR"/macfuse-core-*${m_release}.* | paste -s -` m_log "found payloads $md_platform_dirs" for i in $md_platform_dirs do local md_tmp_versions=${i#*core-} local md_tmp_release_version=${md_tmp_versions#*-} local md_tmp_os_version=${md_tmp_versions%-*} md_platforms="${md_platforms},${md_tmp_os_version}=${i}/$M_PKGNAME_CORE" case "$md_tmp_os_version" in 10.4) m_version_tiger=$md_tmp_release_version ;; 10.5) m_version_leopard=$md_tmp_release_version ;; 10.6) m_version_snowleopard=$md_tmp_release_version ;; 10.7) m_version_lion=$md_tmp_release_version ;; esac m_log "adding [ '$md_tmp_os_version', '$md_tmp_release_version' ]" done m_log "building '$M_PKGNAME'" mkdir "$md_macfuse_out" m_exit_on_error "cannot create directory '$md_macfuse_out'." mkdir "$md_macfuse_root" m_exit_on_error "cannot create directory '$md_macfuse_root'." m_log "copying generic container package payload" mkdir -p "$md_macfuse_root/Library/PreferencePanes" m_exit_on_error "cannot make directory '$md_macfuse_root/Library/PreferencePanes'." cp -R "$md_pp" "$md_macfuse_root/Library/PreferencePanes/" m_exit_on_error "cannot copy the prefpane to '$md_macfuse_root/Library/PreferencePanes/'." m_set_suprompt "to chown '$md_macfuse_root/'." sudo -p "$m_suprompt" chown -R root:wheel "$md_macfuse_root/" local md_srcroot="$m_srcroot/core/packaging/macfuse" local md_infoplist_in="$md_srcroot/Info.plist.in" local md_infoplist_out="$md_macfuse_out/Info.plist" local md_descriptionplist="$md_srcroot/Description.plist" local md_install_resources="$md_macfuse_out/$M_INSTALL_RESOURCES_DIR" # Get rid of .svn files from M_INSTALL_RESOURCES_DIR # (tar -C "$md_srcroot" --exclude '.svn' -cpvf - \ "$M_INSTALL_RESOURCES_DIR" | tar -C "$md_macfuse_out" -xpvf - \ >$m_stdout 2>$m_stderr)>$m_stdout 2>$m_stderr # Copy subpackage platform directories under Resources # local md_pkg_size=0 local md_saved_ifs="$IFS" IFS="," for i in $md_platforms do if [ x"$i" == x"" ] then continue; # Skip empty/bogus comma-item fi local md_tmp_os_version=${i%%=*} local md_tmp_core_pkg=${i##*=} local md_tmp_core_pkg_dir=$(dirname "$md_tmp_core_pkg") local md_tmp_core_pkg_name=$(basename "$md_tmp_core_pkg") local md_tmp_pkg_dst="$md_install_resources/$md_tmp_os_version" local md_tmp_new_size=$(defaults read "$md_tmp_core_pkg/Contents/Info" IFPkgFlagInstalledSize) if [ -z "$md_tmp_new_size" ] then m_warn "unable to read package size from '$md_tmp_core_pkg'." fi if [ $md_tmp_new_size -gt $md_pkg_size ] then md_pkg_size=$md_tmp_new_size fi mkdir "$md_tmp_pkg_dst" m_exit_on_error "cannot make package subdirectory '$md_tmp_pkg_dst'." m_set_suprompt "to add platform-specific package to container" (sudo -p "$m_suprompt" tar -C "$md_tmp_core_pkg_dir" -cpvf - "$md_tmp_core_pkg_name" | sudo -p "$m_suprompt" tar -C "$md_tmp_pkg_dst" -xpvf - >$m_stdout 2>$m_stderr)>$m_stdout 2>$m_stderr m_exit_on_error "cannot add package." done IFS="$md_saved_ifs" # XXX For now, make 10.5 also valid for 10.6 and 10.7 # if [ -d "$md_install_resources/10.5" ] then ln -s "10.5" "$md_install_resources/10.6" ln -s "10.5" "$md_install_resources/10.7" fi # Throw in the autoinstaller # cp "$md_ai" "$md_install_resources" m_exit_on_error "cannot copy '$md_ai' to '$md_install_resources'." # Fix up the container's Info.plist # sed -e "s/MACFUSE_PKG_VERSION_LITERAL/$m_release/g" \ -e "s/MACFUSE_PKG_INSTALLED_SIZE/$md_pkg_size/g" \ < "$md_infoplist_in" > "$md_infoplist_out" m_exit_on_error "cannot fix the Info.plist of the container package." # Create the big package # m_set_suprompt "to run packagemaker for the container package" sudo -p "$m_suprompt" \ packagemaker -build -p "$md_macfuse_out/$M_PKGNAME" \ -f "$md_macfuse_root" -b "$M_CONF_TMPDIR" -ds -v \ -r "$md_install_resources" -i "$md_infoplist_out" \ -d "$md_descriptionplist" >$m_stdout 2>$m_stderr m_exit_on_error "cannot create container package '$M_PKGNAME'." # Create the distribution volume # local md_volume_name="MacFUSE $m_release" local md_scratch_dmg="$md_macfuse_out/macfuse-scratch.dmg" hdiutil create -layout NONE -megabytes 10 -fs HFS+ \ -volname "$md_volume_name" "$md_scratch_dmg" >$m_stdout 2>$m_stderr m_exit_on_error "cannot create scratch MacFUSE disk image." # Attach/mount the volume # hdiutil attach -private -nobrowse "$md_scratch_dmg" >$m_stdout 2>$m_stderr m_exit_on_error "cannot attach scratch MacFUSE disk image." # Create the .engine_install file # local md_volume_path="/Volumes/$md_volume_name" local md_engine_install="$md_volume_path/.engine_install" cat > "$md_engine_install" <<__END_ENGINE_INSTALL #!/bin/sh -p /usr/sbin/installer -pkg "\$1/$M_PKGNAME" -target / __END_ENGINE_INSTALL chmod +x "$md_engine_install" m_exit_on_error "cannot set permissions on autoinstaller engine file." # For backward compatibility, we need a .keystone_install too # ln -s ".engine_install" "$md_volume_path/.keystone_install" # ignore any errors # Copy over the package # cp -pRX "$md_macfuse_out/$M_PKGNAME" "$md_volume_path" if [ $? -ne 0 ] then hdiutil detach "$md_volume_path" >$m_stdout 2>$m_stderr false m_exit_on_error "cannot copy '$M_PKGNAME' to scratch disk image." fi # Set the custom icon # cp -pRX "$md_install_resources/.VolumeIcon.icns" \ "$md_volume_path/.VolumeIcon.icns" m_exit_on_error "cannot copy custom volume icon to scratch disk image." /Developer/Tools/SetFile -a C "$md_volume_path" m_exit_on_error "cannot set custom volume icon on scratch disk image." # Copy over the license file # cp "$md_install_resources/License.rtf" "$md_volume_path/License.rtf" m_exit_on_error "cannot copy MacFUSE license to scratch disk image." # Copy over the CHANGELOG.txt file # cp "$m_srcroot/CHANGELOG.txt" "$md_volume_path/CHANGELOG.txt" m_exit_on_error "cannot copy MacFUSE CHANGELOG to scratch disk image." # Detach the volume. hdiutil detach "$md_volume_path" >$m_stdout 2>$m_stderr if [ $? -ne 0 ] then false m_exit_on_error "cannot detach volume '$md_volume_path'." fi # Convert to a read-only compressed dmg # local md_dmg_name="MacFUSE-$m_release.dmg" local md_dmg_path="$md_macfuse_out/$md_dmg_name" hdiutil convert -imagekey zlib-level=9 -format UDZO "$md_scratch_dmg" \ -o "$md_dmg_path" >$m_stdout 2>$m_stderr m_exit_on_error "cannot finalize MacFUSE distribution disk image." rm -f "$md_scratch_dmg" # ignore any errors m_log "creating autoinstaller rules" # Make autoinstaller rules file # local md_dmg_hash=$(openssl sha1 -binary "$md_dmg_path" | openssl base64) local md_dmg_size=$(stat -f%z "$md_dmg_path") local md_rules_plist="$md_macfuse_out/DeveloperRelease.plist" local md_download_url="http://macfuse.googlecode.com/svn/releases/developer/$md_dmg_name" if [ "$m_developer" == "0" ] then md_rules_plist="$md_macfuse_out/CurrentRelease.plist" md_download_url="http://macfuse.googlecode.com/svn/releases/$md_dmg_name" fi cat > "$md_rules_plist" <<__END_RULES_PLIST <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Rules</key> <array> <dict> <key>ProductID</key> <string>$M_MACFUSE_PRODUCT_ID</string> <key>Predicate</key> <string>SystemVersion.ProductVersion beginswith "10.7" AND Ticket.version != "$m_version_leopard"</string> <key>Version</key> <string>$m_version_leopard</string> <key>Codebase</key> <string>$md_download_url</string> <key>Hash</key> <string>$md_dmg_hash</string> <key>Size</key> <string>$md_dmg_size</string> </dict> <dict> <key>ProductID</key> <string>$M_MACFUSE_PRODUCT_ID</string> <key>Predicate</key> <string>SystemVersion.ProductVersion beginswith "10.6" AND Ticket.version != "$m_version_leopard"</string> <key>Version</key> <string>$m_version_leopard</string> <key>Codebase</key> <string>$md_download_url</string> <key>Hash</key> <string>$md_dmg_hash</string> <key>Size</key> <string>$md_dmg_size</string> </dict> <dict> <key>ProductID</key> <string>$M_MACFUSE_PRODUCT_ID</string> <key>Predicate</key> <string>SystemVersion.ProductVersion beginswith "10.5" AND Ticket.version != "$m_version_leopard"</string> <key>Version</key> <string>$m_version_leopard</string> <key>Codebase</key> <string>$md_download_url</string> <key>Hash</key> <string>$md_dmg_hash</string> <key>Size</key> <string>$md_dmg_size</string> </dict> <dict> <key>ProductID</key> <string>$M_MACFUSE_PRODUCT_ID</string> <key>Predicate</key> <string>SystemVersion.ProductVersion beginswith "10.4" AND Ticket.version != "$m_version_tiger"</string> <key>Version</key> <string>$m_version_tiger</string> <key>Codebase</key> <string>$md_download_url</string> <key>Hash</key> <string>$md_dmg_hash</string> <key>Size</key> <string>$md_dmg_size</string> </dict> </array> </dict> </plist> __END_RULES_PLIST # Sign the output rules # m_log "signing autoinstaller rules" m_set_suprompt "to sign the rules file" sudo -p "$m_suprompt" \ "$md_plistsigner" --sign --key "$M_CONF_PRIVKEY" \ "$md_rules_plist" >$m_stdout 2>$m_stderr m_exit_on_error "cannot sign the rules file '$md_rules_plist' with key '$M_CONF_PRIVKEY'." echo >$m_stdout m_log "succeeded, results in '$md_macfuse_out'." echo >$m_stdout return 0 } # Build a platform-specific distribution package # function m_handler_smalldist() { m_active_target="smalldist" m_set_platform m_set_srcroot "$m_platform" local lib_dir="$m_srcroot"/core/"$m_platform"/libfuse if [ ! -d "$lib_dir" ] then false m_exit_on_error "cannot access directory '$lib_dir'." fi local kernel_dir="$m_srcroot"/core/"$m_platform"/fusefs if [ ! -d "$kernel_dir" ] then false m_exit_on_error "cannot access directory '$kernel_dir'." fi if [ "$m_shortcircuit" != "1" ] then rm -rf "$kernel_dir/build/" rm -rf "$m_srcroot/core/sdk-objc/build/" fi local ms_os_version="$m_platform" local ms_macfuse_version=`awk '/#define[ \t]*MACFUSE_VERSION_LITERAL/ {print $NF}' "$kernel_dir"/common/fuse_version.h` m_exit_on_error "cannot get platform-specific MacFUSE version." local ms_macfuse_out="$M_CONF_TMPDIR/macfuse-core-$ms_os_version-$ms_macfuse_version" local ms_macfuse_build="$ms_macfuse_out/build/" local ms_macfuse_root="$ms_macfuse_out/pkgroot/" if [ "$m_shortcircuit" != "1" ] then if [ -e "$ms_macfuse_out" ] then m_set_suprompt "to remove a previously built platform-specific package" sudo -p "$m_suprompt" rm -rf "$ms_macfuse_out" m_exit_on_error "failed to clean up previous platform-specific MacFUSE build." fi if [ -e "$M_CONF_TMPDIR/macfuse-core-$ms_os_version-"* ] then m_warn "removing unrecognized version of platform-specific package" m_set_suprompt "to remove unrecognized version of platform-specific package" sudo -p "$m_suprompt" rm -rf "$M_CONF_TMPDIR/macfuse-core-$ms_os_version-"* m_exit_on_error "failed to clean up unrecognized version of platform-specific package." fi else if [ -e "$ms_macfuse_out/$M_PKGNAME_CORE" ] then echo >$m_stdout m_log "succeeded (shortcircuited), results in '$ms_macfuse_out'." echo >$m_stdout return 0 fi fi if [ "$1" == "clean" ] then local retval=$? m_log "cleaned (platform $m_platform)" return $retval fi m_log "initiating Universal build for $m_platform" cd "$kernel_dir" m_exit_on_error "failed to access the kext source directory '$kernel_dir'." m_log "building MacFUSE kernel extension and tools" if [ "$m_developer" == "0" ] then xcodebuild -configuration "$m_configuration" -target All >$m_stdout 2>$m_stderr else xcodebuild MACFUSE_BUILD_FLAVOR=Beta -configuration "$m_configuration" -target All >$m_stdout 2>$m_stderr fi m_exit_on_error "xcodebuild cannot build configuration $m_configuration." # Go for it local ms_project_dir="$kernel_dir" local ms_built_products_dir="$kernel_dir/build/$m_configuration/" if [ ! -d "$ms_built_products_dir" ] then m_exit_on_error "cannot find built products directory." fi if [ "$m_platform" == "10.4" ] then ms_macfuse_system_dir="/System" else ms_macfuse_system_dir="" fi mkdir -p "$ms_macfuse_build" m_exit_on_error "cannot make new build directory '$ms_macfuse_build'." mkdir -p "$ms_macfuse_root" m_exit_on_error "cannot make directory '$ms_macfuse_root'." mkdir -p "$ms_macfuse_root$ms_macfuse_system_dir/Library/Filesystems/" m_exit_on_error "cannot make directory '$ms_macfuse_root$ms_macfuse_system_dir/Library/Filesystems/'." mkdir -p "$ms_macfuse_root/Library/Frameworks/" m_exit_on_error "cannot make directory '$ms_macfuse_root/Library/Frameworks/'." mkdir -p "$ms_macfuse_root/usr/local/lib/" m_exit_on_error "cannot make directory '$ms_macfuse_root/usr/local/lib/'." mkdir -p "$ms_macfuse_root/usr/local/include/" m_exit_on_error "cannot make directory '$ms_macfuse_root/usr/local/include/'." mkdir -p "$ms_macfuse_root/usr/local/lib/pkgconfig/" m_exit_on_error "cannot make directory '$ms_macfuse_root/usr/local/lib/pkgconfig/'." local ms_bundle_dir_generic="/Library/Filesystems/$M_FSBUNDLE_NAME" local ms_bundle_dir="$ms_macfuse_root$ms_macfuse_system_dir/$ms_bundle_dir_generic" local ms_bundle_support_dir="$ms_bundle_dir/Support" cp -pRX "$ms_built_products_dir/$M_FSBUNDLE_NAME" "$ms_bundle_dir" m_exit_on_error "cannot copy '$M_FSBUNDLE_NAME' to destination." mkdir -p "$ms_bundle_support_dir" m_exit_on_error "cannot make directory '$ms_bundle_support_dir'." cp -pRX "$ms_built_products_dir/$M_KEXT_NAME" "$ms_bundle_support_dir/$M_KEXT_NAME" m_exit_on_error "cannot copy '$M_KEXT_NAME' to destination." cp -pRX "$ms_built_products_dir/load_fusefs" "$ms_bundle_support_dir/load_fusefs" m_exit_on_error "cannot copy 'load_fusefs' to destination." cp -pRX "$ms_built_products_dir/mount_fusefs" "$ms_bundle_support_dir/mount_fusefs" m_exit_on_error "cannot copy 'mount_fusefs' to destination." cp -pRX "$m_srcroot/core/$m_platform/packaging/macfuse-core/uninstall-macfuse-core.sh" "$ms_bundle_support_dir/uninstall-macfuse-core.sh" m_exit_on_error "cannot copy 'uninstall-macfuse-core.sh' to destination." ln -s "/Library/PreferencePanes/MacFUSE.prefPane/Contents/MacOS/autoinstall-macfuse-core" "$ms_bundle_support_dir/autoinstall-macfuse-core" m_exit_on_error "cannot create legacy symlink '$ms_bundle_support_dir/autoinstall-macfuse-core'". if [ "$m_platform" == "10.4" ] then mkdir -p "$ms_macfuse_root/Library/Filesystems" ln -s "$ms_macfuse_system_dir/$ms_bundle_dir_generic" "$ms_macfuse_root/$ms_bundle_dir_generic" fi # Build the user-space MacFUSE library # m_log "building user-space MacFUSE library" tar -C "$ms_macfuse_build" -xzf "$lib_dir/$M_LIBFUSE_SRC" \ >$m_stdout 2>$m_stderr m_exit_on_error "cannot untar MacFUSE library source from '$M_LIBFUSE_SRC'." cd "$ms_macfuse_build"/fuse* m_exit_on_error "cannot access MacFUSE library source in '$ms_macfuse_build/fuse*'." patch -p1 < "$lib_dir/$M_LIBFUSE_PATCH" >$m_stdout 2>$m_stderr m_exit_on_error "cannot patch MacFUSE library source." /bin/sh ./darwin_configure.sh "$kernel_dir" >$m_stdout 2>$m_stderr m_exit_on_error "cannot configure MacFUSE library source for compilation." make -j2 >$m_stdout 2>$m_stderr m_exit_on_error "make failed while compiling the MacFUSE library." make install DESTDIR="$ms_macfuse_root" >$m_stdout 2>$m_stderr m_exit_on_error "cannot prepare library build for installation." ln -s libfuse.dylib "$ms_macfuse_root/usr/local/lib/libfuse.0.dylib" m_exit_on_error "cannot create compatibility symlink." rm -f "ms_macfuse_root"/usr/local/lib/*ulockmgr* # ignore any errors rm -f "ms_macfuse_root"/usr/local/include/*ulockmgr* # ignore any errors # generate dsym dsymutil "$ms_macfuse_root"/usr/local/lib/libfuse.dylib m_exit_on_error "cannot generate debugging information for libfuse." # Now build again, if necessary, with 64-bit inode support # # ino64 is not supported on Tiger if [ "$m_platform" != "10.4" ] then m_log "building user-space MacFUSE library (ino64)" cd "$ms_macfuse_build"/fuse*/lib m_exit_on_error "cannot access MacFUSE library (ino64) source in '$ms_macfuse_build/fuse*/lib'." make clean >$m_stdout 2>$m_stderr m_exit_on_error "make failed while compiling the MacFUSE library (ino64)." perl -pi -e 's#libfuse#libfuse_ino64#g' Makefile m_exit_on_error "failed to prepare MacFUSE library (ino64) for compilation." perl -pi -e 's#-D__FreeBSD__=10#-D__DARWIN_64_BIT_INO_T=1 -D__FreeBSD__=10#g' Makefile m_exit_on_error "failed to prepare MacFUSE library (ino64) for compilation." make -j2 >$m_stdout 2>$m_stderr m_exit_on_error "make failed while compiling the MacFUSE library (ino64)." make install DESTDIR="$ms_macfuse_root" >$m_stdout 2>$m_stderr m_exit_on_error "cannot prepare MacFUSE library (ino64) build for installation." rm -f "$ms_macfuse_root"/usr/local/lib/*ulockmgr* # ignore any errors rm -f "$ms_macfuse_root"/usr/local/include/*ulockmgr* # ignore any errors # generate dsym dsymutil "$ms_macfuse_root"/usr/local/lib/libfuse_ino64.dylib m_exit_on_error "cannot generate debugging information for libfuse_ino64." fi # ino64 on > Tiger # Build MacFUSE.framework # m_log "building MacFUSE Objective-C SDK" cd "$ms_project_dir/../../sdk-objc" m_exit_on_error "cannot access Objective-C SDK directory." rm -rf build/ m_exit_on_error "cannot remove previous build of MacFUSE.framework." if [ "$m_platform" == "10.4" ] then xcodebuild -configuration "$m_configuration" -target "MacFUSE-$ms_os_version" "MACFUSE_BUILD_ROOT=$ms_macfuse_root" "MACFUSE_BUNDLE_VERSION_LITERAL=$ms_macfuse_version" "CUSTOM_CFLAGS=-DMACFUSE_TARGET_OS=MAC_OS_X_VERSION_10_4" >$m_stdout 2>$m_stderr else xcodebuild -configuration "$m_configuration" -target "MacFUSE-$ms_os_version" "MACFUSE_BUILD_ROOT=$ms_macfuse_root" "MACFUSE_BUNDLE_VERSION_LITERAL=$ms_macfuse_version" >$m_stdout 2>$m_stderr fi m_exit_on_error "xcodebuild cannot build configuration '$m_configuration'." cp -pRX build/"$m_configuration"/*.framework "$ms_macfuse_root/Library/Frameworks/" m_exit_on_error "cannot copy 'MacFUSE.framework' to destination." mv "$ms_macfuse_root"/usr/local/lib/*.dSYM "$ms_macfuse_root"/Library/Frameworks/MacFUSE.framework/Resources/Debug/ if [ "$m_platform" != "10.4" ] then mkdir -p "$ms_macfuse_root/Library/Application Support/Developer/Shared/Xcode/Project Templates" m_exit_on_error "cannot create directory for Xcode templates." ln -s "/Library/Frameworks/MacFUSE.framework/Resources/ProjectTemplates/" "$ms_macfuse_root/Library/Application Support/Developer/Shared/Xcode/Project Templates/MacFUSE" m_exit_on_error "cannot create symlink for Xcode templates." fi m_set_suprompt "to chown '$ms_macfuse_root/*'" sudo -p "$m_suprompt" chown -R root:wheel "$ms_macfuse_root"/* m_exit_on_error "cannot chown '$ms_macfuse_root/*'." m_set_suprompt "to setuid 'load_fusefs'" sudo -p "$m_suprompt" chmod u+s "$ms_bundle_support_dir/load_fusefs" m_exit_on_error "cannot setuid 'load_fusefs'." m_set_suprompt "to chown '$ms_macfuse_root/Library/'" sudo -p "$m_suprompt" chown root:admin "$ms_macfuse_root/Library/" m_exit_on_error "cannot chown '$ms_macfuse_root/Library/'." m_set_suprompt "to chown '$ms_macfuse_root/Library/Frameworks/" sudo -p "$m_suprompt" \ chown -R root:admin "$ms_macfuse_root/Library/Frameworks/" m_exit_on_error "cannot chown '$ms_macfuse_root/Library/Frameworks/'." m_set_suprompt "to chmod '$ms_macfuse_root/Library/Frameworks/'" sudo -p "$m_suprompt" chmod 0775 "$ms_macfuse_root/Library/Frameworks/" m_exit_on_error "cannot chmod '$ms_macfuse_root/Library/Frameworks/'." m_set_suprompt "to chmod '$ms_macfuse_root/Library/'" sudo -p "$m_suprompt" chmod 1775 "$ms_macfuse_root/Library/" m_exit_on_error "cannot chmod '$ms_macfuse_root/Library/'." m_set_suprompt "to chmod files in '$ms_macfuse_root/usr/local/lib/'" sudo -p "$m_suprompt" \ chmod -h 755 `find "$ms_macfuse_root/usr/local/lib" -type l` m_exit_on_error "cannot chmod files in '$ms_macfuse_root/usr/local/lib/'." m_set_suprompt "to chmod files in '$ms_macfuse_root/Library/Frameworks/'" sudo -p "$m_suprompt" \ chmod -h 755 `find "$ms_macfuse_root/Library/Frameworks/" -type l` # no exit upon error cd "$ms_macfuse_root" m_exit_on_error "cannot access directory '$ms_macfuse_root'." # Create the MacFUSE Installer Package # m_log "building installer package for $m_platform" m_build_pkg "$ms_macfuse_version" "$m_srcroot/core/$m_platform/packaging/macfuse-core" "$ms_macfuse_root" "$M_PKGNAME_CORE" "$ms_macfuse_out" m_exit_on_error "cannot create '$M_PKGNAME_CORE'." echo >$m_stdout m_log "succeeded, results in '$ms_macfuse_out'." echo >$m_stdout return 0 } function m_handler_swconfigure() { m_active_target="swconfigure" m_set_platform m_set_srcroot "$m_platform" local lib_dir="$m_srcroot"/core/"$m_platform"/libfuse if [ ! -d "$lib_dir" ] then false m_exit_on_error "cannot access directory '$lib_dir'." fi local kernel_dir="$m_srcroot"/core/"$m_platform"/fusefs if [ ! -d "$kernel_dir" ] then false m_exit_on_error "cannot access directory '$kernel_dir'." fi local current_dir=`pwd` local current_product=`basename "$current_dir"` local extra_cflags="" local architectures="" if [ "$m_platform" == "10.4" ] then extra_cflags="-mmacosx-version-min=10.4" architectures="-arch i386 -arch ppc" else architectures="-arch i386 -arch ppc" fi local common_cflags="-O0 -g $architectures -isysroot $m_usdk_dir -I/usr/local/include" local common_ldflags="-Wl,-syslibroot,$m_usdk_dir $architectures -L/usr/local/lib" local final_cflags="$common_cflags $extra_cflags" local final_ldflags="$common_ldflags" local retval=1 # For pkg-config and such PATH=$PATH:/usr/local/sbin:/usr/local/bin export PATH # We have some special cases for current_product case "$current_product" in gettext*) m_log "Configuring Universal build of gettext for Mac OS X \"$m_osname\"" CFLAGS="$final_cflags -D_POSIX_C_SOURCE=200112L" LDFLAGS="$final_ldflags -fno-common" ./configure --prefix=/usr/local --disable-dependency-tracking --with-libiconv-prefix="$m_usdk_dir"/usr retval=$? ;; glib*) m_log "Configuring Universal build of glib for Mac OS X \"$m_osname\"" CFLAGS="$final_cflags" LDFLAGS="$final_ldflags" ./configure --prefix=/usr/local --disable-dependency-tracking --enable-static retval=$? ;; pkg-config*) m_log "Configuring Universal build of pkg-config for Mac OS X \"$m_osname\"" CFLAGS="$final_cflags" LDFLAGS="$final_ldflags" ./configure --prefix=/usr/local --disable-dependency-tracking ;; *sshfs*) m_log "Configuring Universal build of sshfs for Mac OS X \"$m_osname\"" CFLAGS="$final_cflags -D__FreeBSD__=10 -DDARWIN_SEMAPHORE_COMPAT -DSSH_NODELAY_WORKAROUND" LDFLAGS="$final_ldflags" ./configure --prefix=/usr/local --disable-dependency-tracking ;; *) m_log "Configuring Universal build of generic software for Mac OS X \"$m_osname\"" CFLAGS="$final_cflags" LDFLAGS="$final_ldflags" ./configure --prefix=/usr/local --disable-dependency-tracking ;; esac return $retval } # -- function m_validate_xcode() { m_xcode_version=`xcodebuild -version | head -1 | grep Xcode | awk '{print $NF}'` if [ $? != 0 ] || [ -z "$m_xcode_version" ] then echo "failed to determine Xcode version." exit 2 fi local mvs_xcode_major=`echo $m_xcode_version | cut -d . -f 1` local mvs_xcode_minor=`echo $m_xcode_version | cut -d . -f 2` if [ -z $mvs_xcode_minor ] then mvs_xcode_minor=0 fi local mvs_xcode_rev=`echo $m_xcode_version | cut -d . -f 3` if [ -z $mvs_xcode_rev ] then mvs_xcode_rev=0 fi local mvs_have=$(( $mvs_xcode_major * 100 + $mvs_xcode_minor * 10 + $mvs_xcode_rev )) mvs_xcode_major=`echo $M_XCODE_VERSION_REQUIRED | cut -d . -f 1` mvs_xcode_minor=`echo $M_XCODE_VERSION_REQUIRED | cut -d . -f 2` if [ -z $mvs_xcode_minor ] then mvs_xcode_minor=0 fi mvs_xcode_rev=`echo $M_XCODE_VERSION_REQUIRED | cut -d . -f 3` if [ -z $mvs_xcode_rev ] then mvs_xcode_rev=0 fi local mvs_want=$(( $mvs_xcode_major * 100 + $mvs_xcode_minor * 10 + $mvs_xcode_rev )) if [ $mvs_have -lt $mvs_want ] then echo "Xcode version $M_XCODE_VERSION_REQUIRED or higher is required to build MacFUSE." exit 2 fi m_active_target="preflight" m_log "Xcode version $m_xcode_version found (minimum requirement is $M_XCODE_VERSION_REQUIRED)" return 0 } function m_validate_input() { local mvi_found= local mvi_good= # Validate scratch directory if [ ! -d "$M_CONF_TMPDIR" ] || [ ! -w "$M_CONF_TMPDIR" ] then echo "M_CONF_TMPDIR (currently '$M_CONF_TMPDIR') must be set to a writeable directory." exit 2 fi # Validate if platform was specified when it shouldn't have been # if [ "$m_platform" != "$M_DEFAULT_PLATFORM" ] then mvi_found="0" for m_p in $M_TARGETS_WITH_PLATFORM do if [ "$m_target" == "$m_p" ] then mvi_found="1" break fi done if [ "$mvi_found" == "0" ] then echo "Unknown argument or invalid combination of arguments." echo "Try $0 -h for help." exit 2 fi fi # Validate platform if [ "$m_platform" != "$M_DEFAULT_PLATFORM" ] then mvi_good="0" for m_p in $M_PLATFORMS do if [ "$m_platform" == "$m_p" ] then mvi_good="1" break fi done if [ "$mvi_good" == "0" ] then echo "Unknown platform '$m_platform'." echo "Valid platforms are: $M_PLATFORMS." exit 2 fi fi # Validate target # if [ "$m_target" != "$M_DEFAULT_TARGET" ] then mvi_good="0" for m_t in $M_TARGETS do if [ "$m_target" == "$m_t" ] then mvi_good="1" break fi done if [ "$mvi_good" == "0" ] then echo "Unknown target '$m_target'." echo "Valid targets are: $M_TARGETS." exit 2 fi fi # Validate configuration # mvi_good="0" for m_c in $M_CONFIGURATIONS do if [ "$m_configuration" == "$m_c" ] then mvi_good="1" break fi done if [ "$mvi_good" == "0" ] then echo "Unknown configuration '$m_configuration'." echo "Valid configurations are: $M_CONFIGURATIONS." exit 2 fi if [ "$m_shortcircuit" == "1" ] && [ "$m_target" == "clean" ] then echo "Cleaning cannot be shortcircuited!" exit 2 fi return 0 } function m_read_input() { m_args=`getopt c:dhp:qst:v $*` if [ $? != 0 ] then echo "Try $0 -h for help." exit 2 fi set -- $m_args for m_i do case "$m_i" in -c) m_configuration="$2" shift shift ;; -d) m_developer=1 shift ;; -h) m_help exit 0 ;; -p) m_platform="$2" shift shift ;; -q) m_stderr=/dev/null m_stdout=/dev/null shift ;; -s) m_shortcircuit="1" shift ;; -t) m_target="$2" shift shift ;; -v) m_version exit 0 shift ;; --) shift break ;; esac done } function m_handler() { case "$m_target" in "clean") m_handler_examples clean m_handler_lib clean m_handler_reload clean m_handler_dist clean ;; "dist") m_validate_xcode m_handler_dist ;; "examples") m_handler_examples ;; "lib") m_handler_lib ;; "libsrc") m_handler_libsrc ;; "reload") m_validate_xcode m_handler_reload ;; "smalldist") m_validate_xcode m_handler_smalldist ;; "swconfigure") m_handler_swconfigure ;; *) echo "Try $0 -h for help." ;; esac } # main() # { m_read_input $* m_validate_input m_handler exit $? # }
package io.vertx.blueprint.microservice.gateway; import io.vertx.blueprint.microservice.account.Account; import io.vertx.blueprint.microservice.account.AccountService; import io.vertx.blueprint.microservice.common.RestAPIVerticle; import io.vertx.blueprint.microservice.common.functional.Functional; import io.vertx.core.Future; import io.vertx.core.http.HttpClient; import io.vertx.core.http.HttpClientRequest; import io.vertx.core.http.HttpServerOptions; import io.vertx.core.http.HttpServerResponse; import io.vertx.core.json.JsonObject; import io.vertx.core.logging.Logger; import io.vertx.core.logging.LoggerFactory; import io.vertx.core.net.JksOptions; import io.vertx.ext.auth.oauth2.OAuth2Auth; import io.vertx.ext.auth.oauth2.OAuth2FlowType; import io.vertx.ext.web.Router; import io.vertx.ext.web.RoutingContext; import io.vertx.ext.web.handler.BodyHandler; import io.vertx.ext.web.handler.StaticHandler; import io.vertx.ext.web.handler.UserSessionHandler; import io.vertx.servicediscovery.Record; import io.vertx.servicediscovery.types.EventBusService; import io.vertx.servicediscovery.types.HttpEndpoint; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; /** * A verticle for global API gateway. * This API gateway uses HTTP-HTTP pattern. It's also responsible for * load balance and failure handling. * * @author <NAME> */ public class APIGatewayVerticle extends RestAPIVerticle { private static final int DEFAULT_CHECK_PERIOD = 60000; private static final int DEFAULT_PORT = 8787; private static final Logger logger = LoggerFactory.getLogger(APIGatewayVerticle.class); private OAuth2Auth oauth2; @Override public void start(Future<Void> future) throws Exception { super.start(); // get HTTP host and port from configuration, or use default value String host = config().getString("api.gateway.http.address", "localhost"); int port = config().getInteger("api.gateway.http.port", DEFAULT_PORT); Router router = Router.router(vertx); // cookie and session handler enableLocalSession(router); // body handler router.route().handler(BodyHandler.create()); // version handler router.get("/api/v").handler(this::apiVersion); // create OAuth 2 instance for Keycloak oauth2 = OAuth2Auth.createKeycloak(vertx, OAuth2FlowType.AUTH_CODE, config()); router.route().handler(UserSessionHandler.create(oauth2)); String hostURI = buildHostURI(); // set auth callback handler router.route("/callback").handler(context -> authCallback(oauth2, hostURI, context)); router.get("/uaa").handler(this::authUaaHandler); router.get("/login").handler(this::loginEntryHandler); router.post("/logout").handler(this::logoutHandler); // api dispatcher router.route("/api/*").handler(this::dispatchRequests); // init heart beat check initHealthCheck(); // static content router.route("/*").handler(StaticHandler.create()); // enable HTTPS HttpServerOptions httpServerOptions = new HttpServerOptions() .setSsl(true) .setKeyStoreOptions(new JksOptions().setPath("server.jks").setPassword("<PASSWORD>")); // create http server vertx.createHttpServer(httpServerOptions) .requestHandler(router::accept) .listen(port, host, ar -> { if (ar.succeeded()) { publishApiGateway(host, port); future.complete(); logger.info("API Gateway is running on port " + port); // publish log publishGatewayLog("api_gateway_init_success:" + port); } else { future.fail(ar.cause()); } }); } private void dispatchRequests(RoutingContext context) { int initialOffset = 5; // length of `/api/` // run with circuit breaker in order to deal with failure circuitBreaker.execute(future -> { getAllEndpoints().setHandler(ar -> { if (ar.succeeded()) { List<Record> recordList = ar.result(); // get relative path and retrieve prefix to dispatch client String path = context.request().uri(); if (path.length() <= initialOffset) { notFound(context); future.complete(); return; } String prefix = (path.substring(initialOffset) .split("/"))[0]; // generate new relative path String newPath = path.substring(initialOffset + prefix.length()); // get one relevant HTTP client, may not exist Optional<Record> client = recordList.stream() .filter(record -> record.getMetadata().getString("api.name") != null) .filter(record -> record.getMetadata().getString("api.name").equals(prefix)) .findAny(); // simple load balance if (client.isPresent()) { doDispatch(context, newPath, discovery.getReference(client.get()).get(), future); } else { notFound(context); future.complete(); } } else { future.fail(ar.cause()); } }); }).setHandler(ar -> { if (ar.failed()) { badGateway(ar.cause(), context); } }); } /** * Dispatch the request to the downstream REST layers. * * @param context routing context instance * @param path relative path * @param client relevant HTTP client */ private void doDispatch(RoutingContext context, String path, HttpClient client, Future<Object> cbFuture) { HttpClientRequest toReq = client .request(context.request().method(), path, response -> { response.bodyHandler(body -> { if (response.statusCode() >= 500) { // api endpoint server error, circuit breaker should fail cbFuture.fail(response.statusCode() + ": " + body.toString()); } else { HttpServerResponse toRsp = context.response() .setStatusCode(response.statusCode()); response.headers().forEach(header -> { toRsp.putHeader(header.getKey(), header.getValue()); }); // send response toRsp.end(body); cbFuture.complete(); } }); }); // set headers context.request().headers().forEach(header -> { toReq.putHeader(header.getKey(), header.getValue()); }); if (context.user() != null) { toReq.putHeader("user-principal", context.user().principal().encode()); } // send request if (context.getBody() == null) { toReq.end(); } else { toReq.end(context.getBody()); } } private void apiVersion(RoutingContext context) { context.response() .end(new JsonObject().put("version", "v1").encodePrettily()); } /** * Get all REST endpoints from the service discovery infrastructure. * * @return async result */ private Future<List<Record>> getAllEndpoints() { Future<List<Record>> future = Future.future(); discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE), future.completer()); return future; } // heart beat check (very simple) private void initHealthCheck() { if (config().getBoolean("heartbeat.enable", true)) { // by default enabled int period = config().getInteger("heartbeat.period", DEFAULT_CHECK_PERIOD); vertx.setPeriodic(period, t -> { circuitBreaker.execute(future -> { // behind the circuit breaker sendHeartBeatRequest().setHandler(future.completer()); }); }); } } /** * Send heart-beat check request to every REST node in every interval and await response. * * @return async result. If all nodes are active, the result will be assigned `true`, else the result will fail */ private Future<Object> sendHeartBeatRequest() { final String HEARTBEAT_PATH = config().getString("heartbeat.path", "/health"); return getAllEndpoints() .compose(records -> { List<Future<JsonObject>> statusFutureList = records.stream() .filter(record -> record.getMetadata().getString("api.name") != null) .map(record -> { // for each client, send heart beat request String apiName = record.getMetadata().getString("api.name"); HttpClient client = discovery.getReference(record).get(); Future<JsonObject> future = Future.future(); client.get(HEARTBEAT_PATH, response -> { future.complete(new JsonObject() .put("name", apiName) .put("status", healthStatus(response.statusCode())) ); }) .exceptionHandler(future::fail) .end(); return future; }) .collect(Collectors.toList()); return Functional.sequenceFuture(statusFutureList); // get all responses }) .map(List::stream) .compose(statusList -> { boolean notHealthy = statusList.anyMatch(status -> !status.getBoolean("status")); if (notHealthy) { String issues = statusList.filter(status -> !status.getBoolean("status")) .map(status -> status.getString("name")) .collect(Collectors.joining(", ")); String err = String.format("Heart beat check fail: %s", issues); // publish log publishGatewayLog(err); return Future.failedFuture(new IllegalStateException(err)); } else { // publish log publishGatewayLog("api_gateway_heartbeat_check_success"); return Future.succeededFuture("OK"); } }); } private boolean healthStatus(int code) { return code == 200; } // log methods private void publishGatewayLog(String info) { JsonObject message = new JsonObject() .put("info", info) .put("time", System.currentTimeMillis()); publishLogEvent("gateway", message); } private void publishGatewayLog(JsonObject msg) { JsonObject message = msg.copy() .put("time", System.currentTimeMillis()); publishLogEvent("gateway", message); } // auth private void authCallback(OAuth2Auth oauth2, String hostURL, RoutingContext context) { final String code = context.request().getParam("code"); // code is a require value if (code == null) { context.fail(400); return; } final String redirectTo = context.request().getParam("redirect_uri"); final String redirectURI = hostURL + context.currentRoute().getPath() + "?redirect_uri=" + redirectTo; oauth2.getToken(new JsonObject().put("code", code).put("redirect_uri", redirectURI), ar -> { if (ar.failed()) { logger.warn("Auth fail"); context.fail(ar.cause()); } else { logger.info("Auth success"); context.setUser(ar.result()); context.response() .putHeader("Location", redirectTo) .setStatusCode(302) .end(); } }); } private void authUaaHandler(RoutingContext context) { if (context.user() != null) { JsonObject principal = context.user().principal(); String username = principal.getString("username"); // String username = KeycloakHelper.preferredUsername(principal); if (username == null) { context.response() .putHeader("content-type", "application/json") .end(new Account().setId("TEST666").setUsername("Eric").toString()); // TODO: no username should be an error } else { Future<AccountService> future = Future.future(); EventBusService.getProxy(discovery, new JsonObject().put("name", AccountService.SERVICE_NAME), future.completer() ); future.compose(accountService -> { Future<Account> accountFuture = Future.future(); accountService.retrieveByUsername(username, accountFuture.completer()); return accountFuture; }) .setHandler(resultHandlerNonEmpty(context)); // if user does not exist, should return 404 } } else { context.fail(401); } } private void loginEntryHandler(RoutingContext context) { context.response() .putHeader("Location", generateAuthRedirectURI(buildHostURI())) .setStatusCode(302) .end(); } private void logoutHandler(RoutingContext context) { context.clearUser(); context.session().destroy(); context.response().setStatusCode(204).end(); } private String generateAuthRedirectURI(String from) { return oauth2.authorizeURL(new JsonObject() .put("redirect_uri", from + "/callback?redirect_uri=" + from) .put("scope", "") .put("state", "")); } private String buildHostURI() { int port = config().getInteger("api.gateway.http.port", DEFAULT_PORT); final String host = config().getString("api.gateway.http.address.external", "localhost"); return String.format("https://%s:%d", host, port); } }
<filename>src/main/java/net/visualillusionsent/minecraft/plugin/VisualIllusionsMinecraftPlugin.java /* * This file is part of Visual Illusions Minecraft Plugin Base Library. * * Copyright © 2013-2015 Visual Illusions Entertainment * * Visual Illusions Minecraft Plugin Base Library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, * or (at your option) any later version. * * Visual Illusions Minecraft Plugin Base Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along with Visual Illusions Minecraft Plugin Base Library. * If not, see http://www.gnu.org/licenses/lgpl.html. */ package net.visualillusionsent.minecraft.plugin; import net.visualillusionsent.utils.ProgramChecker; import net.visualillusionsent.utils.TaskManager; import java.io.File; import java.io.FileOutputStream; import java.net.URL; import java.net.URLConnection; import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; import java.util.logging.Logger; /** @author Jason (darkdiplomat) */ public final class VisualIllusionsMinecraftPlugin { public static void checkStatus(VisualIllusionsPlugin plugin) { String statusReport = "%s has declared itself as '%s'. %s"; switch (plugin.getStatus()) { case UNKNOWN: plugin.getPluginLogger().severe(String.format(statusReport, plugin.getPluginName(), "UNKNOWN STATUS", "Use is not advised and could cause damage to your system!")); break; case ALPHA: plugin.getPluginLogger().warning(String.format(statusReport, plugin.getPluginName(), "ALPHA", "Production use is not advised!")); break; case BETA: plugin.getPluginLogger().warning(String.format(statusReport, plugin.getPluginName(), "BETA", "Production use is not advised!")); break; case SNAPSHOT: plugin.getPluginLogger().warning(String.format(statusReport, plugin.getPluginName(), "SNAPSHOT", "Production use is not advised!")); break; case RELEASE_CANDIDATE: plugin.getPluginLogger().warning(String.format(statusReport, plugin.getPluginName(), "RELEASE CANDIDATE", "Expect some bugs.")); break; } } public static void checkVersion(final VisualIllusionsPlugin plugin) { final ProgramChecker programChecker = plugin.getProgramChecker(); if (programChecker != null) { TaskManager.scheduleDelayedTaskInMillis(new Runnable() { public void run() { ProgramChecker.Status response = programChecker.checkStatus(); switch (response) { case ERROR: plugin.getPluginLogger().warning("Program Checker: " + programChecker.getStatusMessage()); break; case UPDATE: plugin.getPluginLogger().warning(programChecker.getStatusMessage()); plugin.getPluginLogger().warning(String.format("You can view update info @ %s#ChangeLog", plugin.getWikiURL())); break; } } }, 1 ); } else { plugin.getPluginLogger().warning("No ProgramChecker instance available."); } } public static void getLibrary(String pluginName, String lib, String version, URL site, Logger logger) { String lib_location = String.format("lib/%s-%s.jar", lib, version); File library = new File(lib_location); if (!library.exists()) { try { URLConnection conn = site.openConnection(); ReadableByteChannel rbc = Channels.newChannel(conn.getInputStream()); FileOutputStream fos = new FileOutputStream(library); fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); } catch (Exception ex) { logger.severe(String.format("[%s] Failed to download Library: %s %s", pluginName, lib, version)); } } } }
#!/bin/bash set -e go_minor_version=$(go version | awk '{print $3}' | awk -F. '{print $2}') if [[ ${go_minor_version} -gt 10 ]]; then export GO111MODULE=on else wget -O dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 chmod +x dep ./dep ensure fi ./test.sh ./coverage.sh --coveralls
import React, { useState } from "react"; import Chart from "react-google-charts"; const App = () => { const [input, setInput] = useState(""); const [data, setData] = useState(null); const handleChange = e => { setInput(e.target.value); }; const handleSubmit = e => { e.preventDefault(); setData([ ["Element", "Density", { role: "style" }], ["Copper", 8.94, "#b87333"], ["Silver", 10.49, "silver"], ["Gold", 19.3, "gold"], ]); }; if (data === null) { return ( <form onSubmit={handleSubmit}> <input type="text" onChange={handleChange} value={input} /> <input type="submit" /> </form> ); } return ( <div> <Chart width={"500px"} height={"300px"} chartType="BarChart" loader={<div>Loading Chart</div>} data={data} options={{ legend: { position: "none" }, title: "Element Density", }} /> </div> ); }; export default App;
set -eux export FLAGS_eager_delete_tensor_gb=0 export FLAGS_sync_nccl_allreduce=1 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 export PYTHONPATH=./ernie:${PYTHONPATH:-} python ./ernie/finetune_launch.py \ --nproc_per_node 8 \ --selected_gpus 0,1,2,3,4,5,6,7 \ --node_ips $(hostname -i) \ --node_id 0 \ ./ernie/run_mrc.py --use_cuda true\ --batch_size 16 \ --in_tokens false\ --use_fast_executor true \ --checkpoints ./checkpoints \ --vocab_path ${MODEL_PATH}/vocab.txt \ --do_train true \ --do_val true \ --do_test false \ --verbose true \ --save_steps 1000 \ --validation_steps 100 \ --warmup_proportion 0.0 \ --weight_decay 0.01 \ --epoch 2 \ --max_seq_len 512 \ --ernie_config_path ${MODEL_PATH}/ernie_config.json \ --do_lower_case true \ --doc_stride 128 \ --train_set ${TASK_DATA_PATH}/cmrc2018/train.json \ --dev_set ${TASK_DATA_PATH}/cmrc2018/dev.json \ --learning_rate 3e-5 \ --num_iteration_per_drop_scope 1 \ --init_pretraining_params ${MODEL_PATH}/params \ --skip_steps 10
// // TokenReauthManager.h // Shukofukurou-IOS // // Created by 香風智乃 on 5/10/20. // Copyright © 2020 MAL Updater OS X Group. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface TokenReauthManager : NSObject + (void)checkRefreshOrReauth; + (void)showReAuthMessage; @end NS_ASSUME_NONNULL_END
<reponame>xiayingfeng/la4j<filename>src/test/java/org/la4j/linear/LeastSquaresSolverTest.java /* * Copyright 2011-2013, by <NAME> and Contributors. * * This file is part of la4j project (http://la4j.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Contributor(s): - * */ package org.la4j.linear; import org.junit.Test; import org.la4j.LinearAlgebra; public class LeastSquaresSolverTest extends AbstractSolverTest { @Override public LinearAlgebra.SolverFactory solverFactory() { return LinearAlgebra.LEAST_SQUARES; } @Test public void testSolve_1x1() { double a[][] = new double[][] { { 55.0 } }; double b[] = new double[] { -5.0 }; performTest(a, b); } @Test public void testSolve_2x2() { double a[][] = new double[][] { { 6.0, 3.0 }, { 9.0, 18.0 } }; double b[] = new double[] { 5.0, 21.0 }; performTest(a, b); } @Test public void testSolve_2x1() { double a[][] = new double[][] { { 20.0 }, { -24.0 } }; double b[] = new double[] { -10.0, 12.0 }; performTest(a, b); } @Test public void testSolve_3x3() { double a[][] = new double[][] { { 99.0, -1.0, 0.0 }, { 9.0, 50.0, -2.0 }, { 10.0, 60.0, -4.0 } }; double b[] = new double[] { -98.9, -34.0, -56.0 }; performTest(a, b); } @Test public void testSolve_3x1() { double a[][] = new double[][] { { 44.0 }, { -4.0 }, { 444.0 } }; double b[] = new double[] { 4.4, -0.4, 44.4 }; performTest(a, b); } @Test public void testSolve_3x2() { double a[][] = new double[][] { { 10.0, 1.0 }, { 0.0, 2.0 }, { 4.0, -8.0 } }; double b[] = new double[] { 90.0, -20.0, 120.0 }; performTest(a, b); } @Test public void testSolve_4x4() { double a[][] = new double[][] { { 77.0, -5.0, 10.0, 0.0 }, { 44.0, 1.0, 0.0, -2.0 }, { 33.0, 20.0, 1.0, 0.0 }, { 0.0, 10.0, -12.0, 54.0 } }; double b[] = new double[] { 708.0, 405.0, 319.0, -230.0 }; performTest(a, b); } @Test public void testSolve_4x1() { double a[][] = new double[][] { { 2.0 }, { -16.0 }, { 32.0 }, { 8.0 } }; double b[] = new double[] { 1.0, -8.0, 16.0, 4.0 }; performTest(a, b); } @Test public void testSolve_4x2() { double a[][] = new double[][] { { 100.0, -88.0 }, { 40.0, -20.0 }, { -0.5, 0.5 }, { 1.0, 0.1 } }; double b[] = new double[] { -870.0, -196.0, 4.95, 1.1 }; performTest(a, b); } @Test public void testSolve_4x3() { double a[][] = new double[][] { { 64.0, -10.0, 1.0 }, { -0.6, 11.0, -15.0 }, { 29.0, 160.0, -9.0 }, { 11.0, -54.0, 22.0 } }; double b[] = new double[] { -36.5, 116.9, 1633.5, -540.0 }; performTest(a, b); } @Test public void testSolve_5x5() { double a[][] = new double[][] { { -5.0, 0.0, 1.0, 20.0, -16.0 }, { 0.0, -10.0, 2.0, -22.0, 14.0 }, { 0.0, -2.0, 0.5, 54.0, 17.0 }, { -0.2, 20.0, -10.0, 45.0, -1.0 }, { 8.0, 9.0, 11.0, -2.0, 15.0 } }; double b[] = new double[] { 42.5, -71.0, 117.75, 107.5, 41.0 }; performTest(a, b); } }
#!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" # Used as a return value for each invocation of `strip_invalid_archs` function. STRIP_BINARY_RETVAL=0 # This protects against multiple targets copying the same framework dependency at the same time. The solution # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") # Copies and strips a vendored framework install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRODUCTS_DIR}/$1" elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" elif [ -r "$1" ]; then local source="$1" fi local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" if [ -L "${source}" ]; then echo "Symlinked..." source="$(readlink "${source}")" fi # Use filter instead of exclude so missing patterns don't throw errors. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" local basename basename="$(basename -s .framework "$1")" binary="${destination}/${basename}.framework/${basename}" if ! [ -r "$binary" ]; then binary="${destination}/${basename}" elif [ -L "${binary}" ]; then echo "Destination binary is symlinked..." dirname="$(dirname "${binary}")" binary="${dirname}/$(readlink "${binary}")" fi # Strip invalid architectures so "fat" simulator / device frameworks work on device if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then strip_invalid_archs "$binary" fi # Resign the code if required by the build settings to avoid unstable apps code_sign_if_enabled "${destination}/$(basename "$1")" # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then local swift_runtime_libs swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) for lib in $swift_runtime_libs; do echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" code_sign_if_enabled "${destination}/${lib}" done fi } # Copies and strips a vendored dSYM install_dsym() { local source="$1" if [ -r "$source" ]; then # Copy the dSYM into a the targets temp dir. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" local basename basename="$(basename -s .framework.dSYM "$source")" binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" # Strip invalid architectures so "fat" simulator / device frameworks work on device if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then strip_invalid_archs "$binary" fi if [[ $STRIP_BINARY_RETVAL == 1 ]]; then # Move the stripped file into its final destination. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" else # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" fi fi } # Copies the bcsymbolmap files of a vendored framework install_bcsymbolmap() { local bcsymbolmap_path="$1" local destination="${BUILT_PRODUCTS_DIR}" echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" } # Signs a framework with the provided identity code_sign_if_enabled() { if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then # Use the current code_sign_identity echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then code_sign_cmd="$code_sign_cmd &" fi echo "$code_sign_cmd" eval "$code_sign_cmd" fi } # Strip invalid architectures strip_invalid_archs() { binary="$1" # Get architectures for current target binary binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" # Intersect them with the architectures we are building for intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" # If there are no archs supported by this binary then warn the user if [[ -z "$intersected_archs" ]]; then echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." STRIP_BINARY_RETVAL=0 return fi stripped="" for arch in $binary_archs; do if ! [[ "${ARCHS}" == *"$arch"* ]]; then # Strip non-valid architectures in-place lipo -remove "$arch" -output "$binary" "$binary" stripped="$stripped $arch" fi done if [[ "$stripped" ]]; then echo "Stripped $binary of architectures:$stripped" fi STRIP_BINARY_RETVAL=1 } if [[ "$CONFIGURATION" == "Debug" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework" install_framework "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework" install_framework "${BUILT_PRODUCTS_DIR}/MyPodsTest/MyPodsTest.framework" fi if [[ "$CONFIGURATION" == "Release" ]]; then install_framework "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework" install_framework "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework" install_framework "${BUILT_PRODUCTS_DIR}/MyPodsTest/MyPodsTest.framework" fi if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then wait fi
#!/bin/bash fileid="1jbTQKj0G2sW9-2pdwf8P3p8oZAcplagP" html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"` curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o resources.tar.gz tar -zxvf resources.tar.gz rm resources.tar.gz echo Download finished.
#!/bin/bash # Check the OS b/c of differences in 'cp' (BSD vs GNU). cp -R bin/* $PREFIX/bin/ cp -R lib/* $SP_DIR cp -R include/* $PREFIX/include/ ## The following lines are a holdover from .app style packaging. ## They are left as a reference for re-implementation outside of this noarch package. # OSX #if [ "$(uname)" == "Darwin" ]; then # # ".command" script is required for terminal.app launcher # cp launch/gpi.command $PREFIX/bin/ # # terminal.app launcher script, the target for GPI.app # cp launch/gpi.app $PREFIX/bin/ #fi # Linux #if [ "$(uname)" == "Linux" ]; then # # launcher # LAUNCHER_PATH=$PREFIX/share/gpi # mkdir -p $LAUNCHER_PATH # cp launch/GPI.desktop $LAUNCHER_PATH/ # cp lib/gpi/graphics/iclogo.png $LAUNCHER_PATH/ #fi # copy and rename 'gpi.command' to 'gpi' cp launch/gpi.command $PREFIX/bin/gpi # for Windows, indlude a batch script version cp launch/gpi_cmd.bat $PREFIX/bin/gpi.cmd cp launch/gpi_make.cmd $PREFIX/bin/gpi_make.cmd # (The shell should automatically pick up on the correct option) # copy licenses to lib dir cp LICENSE $SP_DIR/gpi/ cp COPYING $SP_DIR/gpi/ cp COPYING.LESSER $SP_DIR/gpi/ cp AUTHORS $SP_DIR/gpi/ # drop a version file with parseable info VERSION_FPATH=$SP_DIR/gpi/VERSION echo "PKG_NAME: $PKG_NAME" > $VERSION_FPATH echo "PKG_VERSION: $PKG_VERSION" >> $VERSION_FPATH echo "GIT_FULL_HASH: $GIT_FULL_HASH" >> $VERSION_FPATH BUILD_DATE=`date +%Y-%m-%d` echo "BUILD_DATE: $BUILD_DATE" >> $VERSION_FPATH
#!/bin/bash #SBATCH --nodes=1 #SBATCH --partition=small #SBATCH --job-name=HopfieldLM #SBATCH --gres=gpu:1 module load cuda/9.2 echo $CUDA_VISIBLE_DEVICES nvidia-smi echo $PWD # run the application python3 main.py -m lstm -b 128 -d 1mb -g 0 > slurm-lstmLM-1mb-$SLURM_JOB_ID.out
#!/bin/bash : > track-usItemId-ADOT.txt : > track-priceValue-ADOT.txt : > track-fullName-ADOT.txt : > track-address-ADOT.txt : > track-status-ADOT.txt : > track-number-ADOT.txt : > track-url-ADOT.txt : > track-OrderID-ADOT.txt : > track-email-ADOT.txt : > track-categoriesType-ADOT.txt : > track-CO-ADOT.txt while true do curl1=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3882241861683","emailAddress":"kayliebussell@gmail.com"}}' \ --compressed` if [[ $curl1 =~ "blocked" ]]; then link1=`echo $curl1 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link1` read -n 1 -p "blocked" else break fi done if [[ $curl1 =~ "error" ]]; then echo "1-Sai info" echo "'3882241861683" >> track-OrderID-ADOT.txt echo "ADOT220427042407372" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum1=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"680291077"' ]]; then echo "'3882241861683" >> track-OrderID-ADOT.txt echo ADOT220427042407372 >> track-email-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl1 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum1 == `md5 track-OrderID-ADOT.txt` ]]; then echo "1-Khác Item" echo "'3882241861683" >> track-OrderID-ADOT.txt echo "ADOT220427042407372" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "1" fi fi while true do curl2=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3882241061566","emailAddress":"chanmank@yahoo.com"}}' \ --compressed` if [[ $curl2 =~ "blocked" ]]; then link2=`echo $curl2 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link2` read -n 1 -p "blocked" else break fi done if [[ $curl2 =~ "error" ]]; then echo "2-Sai info" echo "'3882241061566" >> track-OrderID-ADOT.txt echo "ADOT220427044846875" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum2=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"285333157"' ]]; then echo "'3882241061566" >> track-OrderID-ADOT.txt echo ADOT220427044846875 >> track-email-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl2 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum2 == `md5 track-OrderID-ADOT.txt` ]]; then echo "2-Khác Item" echo "'3882241061566" >> track-OrderID-ADOT.txt echo "ADOT220427044846875" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "2" fi fi while true do curl3=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247591350","emailAddress":"Yair_stern@yahoo.com"}}' \ --compressed` if [[ $curl3 =~ "blocked" ]]; then link3=`echo $curl3 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link3` read -n 1 -p "blocked" else break fi done if [[ $curl3 =~ "error" ]]; then echo "3-Sai info" echo "'3902247591350" >> track-OrderID-ADOT.txt echo "ADOT220427232351358" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum3=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"39536782"' ]]; then echo "'3902247591350" >> track-OrderID-ADOT.txt echo ADOT220427232351358 >> track-email-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl3 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum3 == `md5 track-OrderID-ADOT.txt` ]]; then echo "3-Khác Item" echo "'3902247591350" >> track-OrderID-ADOT.txt echo "ADOT220427232351358" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "3" fi fi while true do curl4=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247794608","emailAddress":"Ybarra1512@yahoo.com"}}' \ --compressed` if [[ $curl4 =~ "blocked" ]]; then link4=`echo $curl4 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link4` read -n 1 -p "blocked" else break fi done if [[ $curl4 =~ "error" ]]; then echo "4-Sai info" echo "'3902247794608" >> track-OrderID-ADOT.txt echo "ADOT22042802034617" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum4=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"970197920"' ]]; then echo "'3902247794608" >> track-OrderID-ADOT.txt echo ADOT22042802034617 >> track-email-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl4 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum4 == `md5 track-OrderID-ADOT.txt` ]]; then echo "4-Khác Item" echo "'3902247794608" >> track-OrderID-ADOT.txt echo "ADOT22042802034617" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "4" fi fi while true do curl5=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247995281","emailAddress":"Vrmarotta@gmail.com"}}' \ --compressed` if [[ $curl5 =~ "blocked" ]]; then link5=`echo $curl5 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link5` read -n 1 -p "blocked" else break fi done if [[ $curl5 =~ "error" ]]; then echo "5-Sai info" echo "'3902247995281" >> track-OrderID-ADOT.txt echo "ADOT220428020415395" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum5=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"653378597"' ]]; then echo "'3902247995281" >> track-OrderID-ADOT.txt echo ADOT220428020415395 >> track-email-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl5 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum5 == `md5 track-OrderID-ADOT.txt` ]]; then echo "5-Khác Item" echo "'3902247995281" >> track-OrderID-ADOT.txt echo "ADOT220428020415395" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "5" fi fi while true do curl6=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247095978","emailAddress":"chbakkil@gmail.com"}}' \ --compressed` if [[ $curl6 =~ "blocked" ]]; then link6=`echo $curl6 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link6` read -n 1 -p "blocked" else break fi done if [[ $curl6 =~ "error" ]]; then echo "6-Sai info" echo "'3902247095978" >> track-OrderID-ADOT.txt echo "ADOT220428043847744" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum6=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"680291077"' ]]; then echo "'3902247095978" >> track-OrderID-ADOT.txt echo ADOT220428043847744 >> track-email-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl6 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum6 == `md5 track-OrderID-ADOT.txt` ]]; then echo "6-Khác Item" echo "'3902247095978" >> track-OrderID-ADOT.txt echo "ADOT220428043847744" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "6" fi fi while true do curl7=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247792311","emailAddress":"btstanley@comcast.net"}}' \ --compressed` if [[ $curl7 =~ "blocked" ]]; then link7=`echo $curl7 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link7` read -n 1 -p "blocked" else break fi done if [[ $curl7 =~ "error" ]]; then echo "7-Sai info" echo "'3902247792311" >> track-OrderID-ADOT.txt echo "ADOT220428052849686" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum7=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"212029414"' ]]; then echo "'3902247792311" >> track-OrderID-ADOT.txt echo ADOT220428052849686 >> track-email-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl7 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum7 == `md5 track-OrderID-ADOT.txt` ]]; then echo "7-Khác Item" echo "'3902247792311" >> track-OrderID-ADOT.txt echo "ADOT220428052849686" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "7" fi fi while true do curl8=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3912249844647","emailAddress":"rouhdy1@rocketmail.com"}}' \ --compressed` if [[ $curl8 =~ "blocked" ]]; then link8=`echo $curl8 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link8` read -n 1 -p "blocked" else break fi done if [[ $curl8 =~ "error" ]]; then echo "8-Sai info" echo "'3912249844647" >> track-OrderID-ADOT.txt echo "ADOT220422011354133" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum8=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"637665575"' ]]; then echo "'3912249844647" >> track-OrderID-ADOT.txt echo ADOT220422011354133 >> track-email-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl8 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum8 == `md5 track-OrderID-ADOT.txt` ]]; then echo "8-Khác Item" echo "'3912249844647" >> track-OrderID-ADOT.txt echo "ADOT220422011354133" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "8" fi fi while true do curl9=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3912249942556","emailAddress":"jg51kj@yahoo.com"}}' \ --compressed` if [[ $curl9 =~ "blocked" ]]; then link9=`echo $curl9 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link9` read -n 1 -p "blocked" else break fi done if [[ $curl9 =~ "error" ]]; then echo "9-Sai info" echo "'3912249942556" >> track-OrderID-ADOT.txt echo "ADOT220423151843660" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum9=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"637665575"' ]]; then echo "'3912249942556" >> track-OrderID-ADOT.txt echo ADOT220423151843660 >> track-email-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl9 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum9 == `md5 track-OrderID-ADOT.txt` ]]; then echo "9-Khác Item" echo "'3912249942556" >> track-OrderID-ADOT.txt echo "ADOT220423151843660" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "9" fi fi while true do curl10=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254173384","emailAddress":"hogueisland@hotmail.com"}}' \ --compressed` if [[ $curl10 =~ "blocked" ]]; then link10=`echo $curl10 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link10` read -n 1 -p "blocked" else break fi done if [[ $curl10 =~ "error" ]]; then echo "10-Sai info" echo "'3942254173384" >> track-OrderID-ADOT.txt echo "ADOT220424061842983" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum10=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"5606333"' ]]; then echo "'3942254173384" >> track-OrderID-ADOT.txt echo ADOT220424061842983 >> track-email-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl10 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum10 == `md5 track-OrderID-ADOT.txt` ]]; then echo "10-Khác Item" echo "'3942254173384" >> track-OrderID-ADOT.txt echo "ADOT220424061842983" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "10" fi fi while true do curl11=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260001593","emailAddress":"lettyr2@yahoo.com"}}' \ --compressed` if [[ $curl11 =~ "blocked" ]]; then link11=`echo $curl11 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link11` read -n 1 -p "blocked" else break fi done if [[ $curl11 =~ "error" ]]; then echo "11-Sai info" echo "'3972260001593" >> track-OrderID-ADOT.txt echo "ADOT220429155106956" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum11=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"875532417"' ]]; then echo "'3972260001593" >> track-OrderID-ADOT.txt echo ADOT220429155106956 >> track-email-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl11 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum11 == `md5 track-OrderID-ADOT.txt` ]]; then echo "11-Khác Item" echo "'3972260001593" >> track-OrderID-ADOT.txt echo "ADOT220429155106956" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "11" fi fi while true do curl12=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260020703","emailAddress":"andreea.mccann@gmail.com"}}' \ --compressed` if [[ $curl12 =~ "blocked" ]]; then link12=`echo $curl12 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link12` read -n 1 -p "blocked" else break fi done if [[ $curl12 =~ "error" ]]; then echo "12-Sai info" echo "'3972260020703" >> track-OrderID-ADOT.txt echo "ADOT220428095854203" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum12=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"377870589"' ]]; then echo "'3972260020703" >> track-OrderID-ADOT.txt echo ADOT220428095854203 >> track-email-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl12 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum12 == `md5 track-OrderID-ADOT.txt` ]]; then echo "12-Khác Item" echo "'3972260020703" >> track-OrderID-ADOT.txt echo "ADOT220428095854203" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "12" fi fi while true do curl13=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260025337","emailAddress":"andreaspradlin@hotmail.com"}}' \ --compressed` if [[ $curl13 =~ "blocked" ]]; then link13=`echo $curl13 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link13` read -n 1 -p "blocked" else break fi done if [[ $curl13 =~ "error" ]]; then echo "13-Sai info" echo "'3972260025337" >> track-OrderID-ADOT.txt echo "ADOT220428233417294" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else sum13=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"939529312"' ]]; then echo "'3972260025337" >> track-OrderID-ADOT.txt echo ADOT220428233417294 >> track-email-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl13 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt break fi done done if [[ $sum13 == `md5 track-OrderID-ADOT.txt` ]]; then echo "13-Khác Item" echo "'3972260025337" >> track-OrderID-ADOT.txt echo "ADOT220428233417294" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Đại Ngọc" >> track-CO-ADOT.txt else echo "13" fi fi while true do curl14=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3932252083662","emailAddress":"cjd2299@yahoo.com"}}' \ --compressed` if [[ $curl14 =~ "blocked" ]]; then link14=`echo $curl14 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link14` read -n 1 -p "blocked" else break fi done if [[ $curl14 =~ "error" ]]; then echo "14-Sai info" echo "'3932252083662" >> track-OrderID-ADOT.txt echo "ADOT22042804034750" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum14=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"504678442"' ]]; then echo "'3932252083662" >> track-OrderID-ADOT.txt echo ADOT22042804034750 >> track-email-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl14 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum14 == `md5 track-OrderID-ADOT.txt` ]]; then echo "14-Khác Item" echo "'3932252083662" >> track-OrderID-ADOT.txt echo "ADOT22042804034750" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "14" fi fi while true do curl15=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3932252284600","emailAddress":"aliciaymickey01@gmail.com"}}' \ --compressed` if [[ $curl15 =~ "blocked" ]]; then link15=`echo $curl15 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link15` read -n 1 -p "blocked" else break fi done if [[ $curl15 =~ "error" ]]; then echo "15-Sai info" echo "'3932252284600" >> track-OrderID-ADOT.txt echo "ADOT220501045846381" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum15=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"818068049"' ]]; then echo "'3932252284600" >> track-OrderID-ADOT.txt echo ADOT220501045846381 >> track-email-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl15 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum15 == `md5 track-OrderID-ADOT.txt` ]]; then echo "15-Khác Item" echo "'3932252284600" >> track-OrderID-ADOT.txt echo "ADOT220501045846381" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "15" fi fi while true do curl16=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254411751","emailAddress":"kristineiverson@yahoo.com"}}' \ --compressed` if [[ $curl16 =~ "blocked" ]]; then link16=`echo $curl16 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link16` read -n 1 -p "blocked" else break fi done if [[ $curl16 =~ "error" ]]; then echo "16-Sai info" echo "'3942254411751" >> track-OrderID-ADOT.txt echo "ADOT220501103344591" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum16=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"996906813"' ]]; then echo "'3942254411751" >> track-OrderID-ADOT.txt echo ADOT220501103344591 >> track-email-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl16 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum16 == `md5 track-OrderID-ADOT.txt` ]]; then echo "16-Khác Item" echo "'3942254411751" >> track-OrderID-ADOT.txt echo "ADOT220501103344591" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "16" fi fi while true do curl17=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3932252769225","emailAddress":"Suelynn45@yahoo.com"}}' \ --compressed` if [[ $curl17 =~ "blocked" ]]; then link17=`echo $curl17 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link17` read -n 1 -p "blocked" else break fi done if [[ $curl17 =~ "error" ]]; then echo "17-Sai info" echo "'3932252769225" >> track-OrderID-ADOT.txt echo "ADOT220501120846131" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum17=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"875532417"' ]]; then echo "'3932252769225" >> track-OrderID-ADOT.txt echo ADOT220501120846131 >> track-email-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl17 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum17 == `md5 track-OrderID-ADOT.txt` ]]; then echo "17-Khác Item" echo "'3932252769225" >> track-OrderID-ADOT.txt echo "ADOT220501120846131" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "17" fi fi while true do curl18=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3932253631758","emailAddress":"crjmarinebio9@gmail.com"}}' \ --compressed` if [[ $curl18 =~ "blocked" ]]; then link18=`echo $curl18 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link18` read -n 1 -p "blocked" else break fi done if [[ $curl18 =~ "error" ]]; then echo "18-Sai info" echo "'3932253631758" >> track-OrderID-ADOT.txt echo "ADOT22050113534619" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum18=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"5606333"' ]]; then echo "'3932253631758" >> track-OrderID-ADOT.txt echo ADOT22050113534619 >> track-email-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl18 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum18 == `md5 track-OrderID-ADOT.txt` ]]; then echo "18-Khác Item" echo "'3932253631758" >> track-OrderID-ADOT.txt echo "ADOT22050113534619" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "18" fi fi while true do curl19=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942255810993","emailAddress":"Stephyedwin@hotmail.com"}}' \ --compressed` if [[ $curl19 =~ "blocked" ]]; then link19=`echo $curl19 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link19` read -n 1 -p "blocked" else break fi done if [[ $curl19 =~ "error" ]]; then echo "19-Sai info" echo "'3942255810993" >> track-OrderID-ADOT.txt echo "ADOT220502035348171" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum19=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"851260554"' ]]; then echo "'3942255810993" >> track-OrderID-ADOT.txt echo ADOT220502035348171 >> track-email-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl19 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum19 == `md5 track-OrderID-ADOT.txt` ]]; then echo "19-Khác Item" echo "'3942255810993" >> track-OrderID-ADOT.txt echo "ADOT220502035348171" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "19" fi fi while true do curl20=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256455920","emailAddress":"Lorens304@aol.com"}}' \ --compressed` if [[ $curl20 =~ "blocked" ]]; then link20=`echo $curl20 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link20` read -n 1 -p "blocked" else break fi done if [[ $curl20 =~ "error" ]]; then echo "20-Sai info" echo "'3952256455920" >> track-OrderID-ADOT.txt echo "ADOT220502052350434" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum20=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"247926307"' ]]; then echo "'3952256455920" >> track-OrderID-ADOT.txt echo ADOT220502052350434 >> track-email-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl20 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum20 == `md5 track-OrderID-ADOT.txt` ]]; then echo "20-Khác Item" echo "'3952256455920" >> track-OrderID-ADOT.txt echo "ADOT220502052350434" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "20" fi fi while true do curl21=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254731800","emailAddress":"Nikkic2012@yahoo.com"}}' \ --compressed` if [[ $curl21 =~ "blocked" ]]; then link21=`echo $curl21 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link21` read -n 1 -p "blocked" else break fi done if [[ $curl21 =~ "error" ]]; then echo "21-Sai info" echo "'3942254731800" >> track-OrderID-ADOT.txt echo "ADOT220503055350588" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum21=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"596178826"' ]]; then echo "'3942254731800" >> track-OrderID-ADOT.txt echo ADOT220503055350588 >> track-email-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl21 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum21 == `md5 track-OrderID-ADOT.txt` ]]; then echo "21-Khác Item" echo "'3942254731800" >> track-OrderID-ADOT.txt echo "ADOT220503055350588" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "21" fi fi while true do curl22=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254651541","emailAddress":"shawnellel88@gmail.com"}}' \ --compressed` if [[ $curl22 =~ "blocked" ]]; then link22=`echo $curl22 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link22` read -n 1 -p "blocked" else break fi done if [[ $curl22 =~ "error" ]]; then echo "22-Sai info" echo "'3942254651541" >> track-OrderID-ADOT.txt echo "ADOT220503064346236" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum22=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"5606333"' ]]; then echo "'3942254651541" >> track-OrderID-ADOT.txt echo ADOT220503064346236 >> track-email-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl22 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum22 == `md5 track-OrderID-ADOT.txt` ]]; then echo "22-Khác Item" echo "'3942254651541" >> track-OrderID-ADOT.txt echo "ADOT220503064346236" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "22" fi fi while true do curl23=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260229276","emailAddress":"lyndalocigno@gmail.com"}}' \ --compressed` if [[ $curl23 =~ "blocked" ]]; then link23=`echo $curl23 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link23` read -n 1 -p "blocked" else break fi done if [[ $curl23 =~ "error" ]]; then echo "23-Sai info" echo "'3972260229276" >> track-OrderID-ADOT.txt echo "ADOT220503075348611" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum23=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"5606333"' ]]; then echo "'3972260229276" >> track-OrderID-ADOT.txt echo ADOT220503075348611 >> track-email-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl23 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum23 == `md5 track-OrderID-ADOT.txt` ]]; then echo "23-Khác Item" echo "'3972260229276" >> track-OrderID-ADOT.txt echo "ADOT220503075348611" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "23" fi fi while true do curl24=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256922988","emailAddress":"suz8340@yahoo.com"}}' \ --compressed` if [[ $curl24 =~ "blocked" ]]; then link24=`echo $curl24 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link24` read -n 1 -p "blocked" else break fi done if [[ $curl24 =~ "error" ]]; then echo "24-Sai info" echo "'3952256922988" >> track-OrderID-ADOT.txt echo "ADOT220426074845813" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum24=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"167764250"' ]]; then echo "'3952256922988" >> track-OrderID-ADOT.txt echo ADOT220426074845813 >> track-email-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl24 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum24 == `md5 track-OrderID-ADOT.txt` ]]; then echo "24-Khác Item" echo "'3952256922988" >> track-OrderID-ADOT.txt echo "ADOT220426074845813" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "24" fi fi while true do curl25=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256169283","emailAddress":"mholda@optonline.net"}}' \ --compressed` if [[ $curl25 =~ "blocked" ]]; then link25=`echo $curl25 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link25` read -n 1 -p "blocked" else break fi done if [[ $curl25 =~ "error" ]]; then echo "25-Sai info" echo "'3952256169283" >> track-OrderID-ADOT.txt echo "ADOT220504044843689" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum25=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"247926307"' ]]; then echo "'3952256169283" >> track-OrderID-ADOT.txt echo ADOT220504044843689 >> track-email-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl25 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum25 == `md5 track-OrderID-ADOT.txt` ]]; then echo "25-Khác Item" echo "'3952256169283" >> track-OrderID-ADOT.txt echo "ADOT220504044843689" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "25" fi fi while true do curl26=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261774063","emailAddress":"colemandnathan@gmail.com"}}' \ --compressed` if [[ $curl26 =~ "blocked" ]]; then link26=`echo $curl26 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link26` read -n 1 -p "blocked" else break fi done if [[ $curl26 =~ "error" ]]; then echo "26-Sai info" echo "'3982261774063" >> track-OrderID-ADOT.txt echo "ADOT2205040739081" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum26=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"411775039"' ]]; then echo "'3982261774063" >> track-OrderID-ADOT.txt echo ADOT2205040739081 >> track-email-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl26 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum26 == `md5 track-OrderID-ADOT.txt` ]]; then echo "26-Khác Item" echo "'3982261774063" >> track-OrderID-ADOT.txt echo "ADOT2205040739081" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "26" fi fi while true do curl27=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258743008","emailAddress":"jlwaddell980@gmail.com"}}' \ --compressed` if [[ $curl27 =~ "blocked" ]]; then link27=`echo $curl27 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link27` read -n 1 -p "blocked" else break fi done if [[ $curl27 =~ "error" ]]; then echo "27-Sai info" echo "'3962258743008" >> track-OrderID-ADOT.txt echo "ADOT220501205848379" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum27=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"768720631"' ]]; then echo "'3962258743008" >> track-OrderID-ADOT.txt echo ADOT220501205848379 >> track-email-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl27 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum27 == `md5 track-OrderID-ADOT.txt` ]]; then echo "27-Khác Item" echo "'3962258743008" >> track-OrderID-ADOT.txt echo "ADOT220501205848379" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "27" fi fi while true do curl28=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260652614","emailAddress":"angelagrangel@live.com"}}' \ --compressed` if [[ $curl28 =~ "blocked" ]]; then link28=`echo $curl28 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link28` read -n 1 -p "blocked" else break fi done if [[ $curl28 =~ "error" ]]; then echo "28-Sai info" echo "'3972260652614" >> track-OrderID-ADOT.txt echo "ADOT220503041849482" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum28=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"345235004"' ]]; then echo "'3972260652614" >> track-OrderID-ADOT.txt echo ADOT220503041849482 >> track-email-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl28 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum28 == `md5 track-OrderID-ADOT.txt` ]]; then echo "28-Khác Item" echo "'3972260652614" >> track-OrderID-ADOT.txt echo "ADOT220503041849482" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "28" fi fi while true do curl29=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260015395","emailAddress":"fabicray@aol.com"}}' \ --compressed` if [[ $curl29 =~ "blocked" ]]; then link29=`echo $curl29 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link29` read -n 1 -p "blocked" else break fi done if [[ $curl29 =~ "error" ]]; then echo "29-Sai info" echo "'3972260015395" >> track-OrderID-ADOT.txt echo "ADOT220427044846875" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum29=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"285333157"' ]]; then echo "'3972260015395" >> track-OrderID-ADOT.txt echo ADOT220427044846875 >> track-email-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl29 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum29 == `md5 track-OrderID-ADOT.txt` ]]; then echo "29-Khác Item" echo "'3972260015395" >> track-OrderID-ADOT.txt echo "ADOT220427044846875" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "29" fi fi while true do curl30=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261058863","emailAddress":"yafangmiao@yahoo.com"}}' \ --compressed` if [[ $curl30 =~ "blocked" ]]; then link30=`echo $curl30 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link30` read -n 1 -p "blocked" else break fi done if [[ $curl30 =~ "error" ]]; then echo "30-Sai info" echo "'3982261058863" >> track-OrderID-ADOT.txt echo "TD220507075915166" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum30=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"477200308"' ]]; then echo "'3982261058863" >> track-OrderID-ADOT.txt echo TD220507075915166 >> track-email-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl30 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum30 == `md5 track-OrderID-ADOT.txt` ]]; then echo "30-Khác Item" echo "'3982261058863" >> track-OrderID-ADOT.txt echo "TD220507075915166" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "30" fi fi while true do curl31=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261369980","emailAddress":"noreplys@charter.net"}}' \ --compressed` if [[ $curl31 =~ "blocked" ]]; then link31=`echo $curl31 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link31` read -n 1 -p "blocked" else break fi done if [[ $curl31 =~ "error" ]]; then echo "31-Sai info" echo "'3982261369980" >> track-OrderID-ADOT.txt echo "TD220507080009543" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum31=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"46368979"' ]]; then echo "'3982261369980" >> track-OrderID-ADOT.txt echo TD220507080009543 >> track-email-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl31 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum31 == `md5 track-OrderID-ADOT.txt` ]]; then echo "31-Khác Item" echo "'3982261369980" >> track-OrderID-ADOT.txt echo "TD220507080009543" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "31" fi fi while true do curl32=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261374599","emailAddress":"Vguidroz@yahoo.com"}}' \ --compressed` if [[ $curl32 =~ "blocked" ]]; then link32=`echo $curl32 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link32` read -n 1 -p "blocked" else break fi done if [[ $curl32 =~ "error" ]]; then echo "32-Sai info" echo "'3982261374599" >> track-OrderID-ADOT.txt echo "ADOT220427012847357" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum32=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"996906813"' ]]; then echo "'3982261374599" >> track-OrderID-ADOT.txt echo ADOT220427012847357 >> track-email-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl32 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum32 == `md5 track-OrderID-ADOT.txt` ]]; then echo "32-Khác Item" echo "'3982261374599" >> track-OrderID-ADOT.txt echo "ADOT220427012847357" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "32" fi fi while true do curl33=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3792223919942","emailAddress":"retanastephanie@yahoo.com"}}' \ --compressed` if [[ $curl33 =~ "blocked" ]]; then link33=`echo $curl33 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link33` read -n 1 -p "blocked" else break fi done if [[ $curl33 =~ "error" ]]; then echo "33-Sai info" echo "'3792223919942" >> track-OrderID-ADOT.txt echo "ADOT220415052848263" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum33=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"269572873"' ]]; then echo "'3792223919942" >> track-OrderID-ADOT.txt echo ADOT220415052848263 >> track-email-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl33 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum33 == `md5 track-OrderID-ADOT.txt` ]]; then echo "33-Khác Item" echo "'3792223919942" >> track-OrderID-ADOT.txt echo "ADOT220415052848263" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "33" fi fi while true do curl34=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3772220223718","emailAddress":"carasap@gmail.com"}}' \ --compressed` if [[ $curl34 =~ "blocked" ]]; then link34=`echo $curl34 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link34` read -n 1 -p "blocked" else break fi done if [[ $curl34 =~ "error" ]]; then echo "34-Sai info" echo "'3772220223718" >> track-OrderID-ADOT.txt echo "ADOT220416051843695" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum34=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"135269949"' ]]; then echo "'3772220223718" >> track-OrderID-ADOT.txt echo ADOT220416051843695 >> track-email-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl34 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum34 == `md5 track-OrderID-ADOT.txt` ]]; then echo "34-Khác Item" echo "'3772220223718" >> track-OrderID-ADOT.txt echo "ADOT220416051843695" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "34" fi fi while true do curl35=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3882241161452","emailAddress":"Tabitha2775@gmail.com"}}' \ --compressed` if [[ $curl35 =~ "blocked" ]]; then link35=`echo $curl35 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link35` read -n 1 -p "blocked" else break fi done if [[ $curl35 =~ "error" ]]; then echo "35-Sai info" echo "'3882241161452" >> track-OrderID-ADOT.txt echo "ADOT220422232858100" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum35=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"996906813"' ]]; then echo "'3882241161452" >> track-OrderID-ADOT.txt echo ADOT220422232858100 >> track-email-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl35 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum35 == `md5 track-OrderID-ADOT.txt` ]]; then echo "35-Khác Item" echo "'3882241161452" >> track-OrderID-ADOT.txt echo "ADOT220422232858100" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "35" fi fi while true do curl36=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3892246980642","emailAddress":"Michael6243@gmail.com"}}' \ --compressed` if [[ $curl36 =~ "blocked" ]]; then link36=`echo $curl36 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link36` read -n 1 -p "blocked" else break fi done if [[ $curl36 =~ "error" ]]; then echo "36-Sai info" echo "'3892246980642" >> track-OrderID-ADOT.txt echo "ADOT220425091355414" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum36=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"348284886"' ]]; then echo "'3892246980642" >> track-OrderID-ADOT.txt echo ADOT220425091355414 >> track-email-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl36 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum36 == `md5 track-OrderID-ADOT.txt` ]]; then echo "36-Khác Item" echo "'3892246980642" >> track-OrderID-ADOT.txt echo "ADOT220425091355414" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "36" fi fi while true do curl37=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3872240765517","emailAddress":"Pam.obrien@sodexo.com"}}' \ --compressed` if [[ $curl37 =~ "blocked" ]]; then link37=`echo $curl37 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link37` read -n 1 -p "blocked" else break fi done if [[ $curl37 =~ "error" ]]; then echo "37-Sai info" echo "'3872240765517" >> track-OrderID-ADOT.txt echo "ADOT220425221845286" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum37=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"875532417"' ]]; then echo "'3872240765517" >> track-OrderID-ADOT.txt echo ADOT220425221845286 >> track-email-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl37 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum37 == `md5 track-OrderID-ADOT.txt` ]]; then echo "37-Khác Item" echo "'3872240765517" >> track-OrderID-ADOT.txt echo "ADOT220425221845286" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "37" fi fi while true do curl38=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247670769","emailAddress":"pes429@netzero.com"}}' \ --compressed` if [[ $curl38 =~ "blocked" ]]; then link38=`echo $curl38 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link38` read -n 1 -p "blocked" else break fi done if [[ $curl38 =~ "error" ]]; then echo "38-Sai info" echo "'3902247670769" >> track-OrderID-ADOT.txt echo "ADOT220428200348674" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum38=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"499036710"' ]]; then echo "'3902247670769" >> track-OrderID-ADOT.txt echo ADOT220428200348674 >> track-email-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl38 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum38 == `md5 track-OrderID-ADOT.txt` ]]; then echo "38-Khác Item" echo "'3902247670769" >> track-OrderID-ADOT.txt echo "ADOT220428200348674" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "38" fi fi while true do curl39=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247572204","emailAddress":"spowell3@gmail.com"}}' \ --compressed` if [[ $curl39 =~ "blocked" ]]; then link39=`echo $curl39 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link39` read -n 1 -p "blocked" else break fi done if [[ $curl39 =~ "error" ]]; then echo "39-Sai info" echo "'3902247572204" >> track-OrderID-ADOT.txt echo "ADOT220428224851122" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum39=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"680291077"' ]]; then echo "'3902247572204" >> track-OrderID-ADOT.txt echo ADOT220428224851122 >> track-email-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl39 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum39 == `md5 track-OrderID-ADOT.txt` ]]; then echo "39-Khác Item" echo "'3902247572204" >> track-OrderID-ADOT.txt echo "ADOT220428224851122" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "39" fi fi while true do curl40=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247297040","emailAddress":"Susanday1212@yahoo.com"}}' \ --compressed` if [[ $curl40 =~ "blocked" ]]; then link40=`echo $curl40 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link40` read -n 1 -p "blocked" else break fi done if [[ $curl40 =~ "error" ]]; then echo "40-Sai info" echo "'3902247297040" >> track-OrderID-ADOT.txt echo "ADOT220428233417294" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum40=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"939529312"' ]]; then echo "'3902247297040" >> track-OrderID-ADOT.txt echo ADOT220428233417294 >> track-email-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl40 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum40 == `md5 track-OrderID-ADOT.txt` ]]; then echo "40-Khác Item" echo "'3902247297040" >> track-OrderID-ADOT.txt echo "ADOT220428233417294" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "40" fi fi while true do curl41=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258459889","emailAddress":"marie.briody5@gmail.com"}}' \ --compressed` if [[ $curl41 =~ "blocked" ]]; then link41=`echo $curl41 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link41` read -n 1 -p "blocked" else break fi done if [[ $curl41 =~ "error" ]]; then echo "41-Sai info" echo "'3962258459889" >> track-OrderID-ADOT.txt echo "ADOT220429063849578" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum41=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"152362616"' ]]; then echo "'3962258459889" >> track-OrderID-ADOT.txt echo ADOT220429063849578 >> track-email-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl41 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum41 == `md5 track-OrderID-ADOT.txt` ]]; then echo "41-Khác Item" echo "'3962258459889" >> track-OrderID-ADOT.txt echo "ADOT220429063849578" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "41" fi fi while true do curl42=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3902247295606","emailAddress":"Susanday1212@yahoo.com"}}' \ --compressed` if [[ $curl42 =~ "blocked" ]]; then link42=`echo $curl42 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link42` read -n 1 -p "blocked" else break fi done if [[ $curl42 =~ "error" ]]; then echo "42-Sai info" echo "'3902247295606" >> track-OrderID-ADOT.txt echo "ADOT220429093845452" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum42=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"348284886"' ]]; then echo "'3902247295606" >> track-OrderID-ADOT.txt echo ADOT220429093845452 >> track-email-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl42 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum42 == `md5 track-OrderID-ADOT.txt` ]]; then echo "42-Khác Item" echo "'3902247295606" >> track-OrderID-ADOT.txt echo "ADOT220429093845452" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "42" fi fi while true do curl43=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3912249836269","emailAddress":"Tashonajoyner84@yahoo.com"}}' \ --compressed` if [[ $curl43 =~ "blocked" ]]; then link43=`echo $curl43 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link43` read -n 1 -p "blocked" else break fi done if [[ $curl43 =~ "error" ]]; then echo "43-Sai info" echo "'3912249836269" >> track-OrderID-ADOT.txt echo "ADOT220430040849108" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum43=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"512892791"' ]]; then echo "'3912249836269" >> track-OrderID-ADOT.txt echo ADOT220430040849108 >> track-email-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl43 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum43 == `md5 track-OrderID-ADOT.txt` ]]; then echo "43-Khác Item" echo "'3912249836269" >> track-OrderID-ADOT.txt echo "ADOT220430040849108" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "43" fi fi while true do curl44=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254588633","emailAddress":"esbuice.bp@gmail.com"}}' \ --compressed` if [[ $curl44 =~ "blocked" ]]; then link44=`echo $curl44 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link44` read -n 1 -p "blocked" else break fi done if [[ $curl44 =~ "error" ]]; then echo "44-Sai info" echo "'3942254588633" >> track-OrderID-ADOT.txt echo "ADOT220430040849109" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else sum44=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"17628848"' ]]; then echo "'3942254588633" >> track-OrderID-ADOT.txt echo ADOT220430040849109 >> track-email-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl44 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt break fi done done if [[ $sum44 == `md5 track-OrderID-ADOT.txt` ]]; then echo "44-Khác Item" echo "'3942254588633" >> track-OrderID-ADOT.txt echo "ADOT220430040849109" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Hiệp" >> track-CO-ADOT.txt else echo "44" fi fi while true do curl45=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3932252074543","emailAddress":"livingston3676@charter.net"}}' \ --compressed` if [[ $curl45 =~ "blocked" ]]; then link45=`echo $curl45 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link45` read -n 1 -p "blocked" else break fi done if [[ $curl45 =~ "error" ]]; then echo "45-Sai info" echo "'3932252074543" >> track-OrderID-ADOT.txt echo "ADOT220501221351118" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum45=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"768720631"' ]]; then echo "'3932252074543" >> track-OrderID-ADOT.txt echo ADOT220501221351118 >> track-email-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl45 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum45 == `md5 track-OrderID-ADOT.txt` ]]; then echo "45-Khác Item" echo "'3932252074543" >> track-OrderID-ADOT.txt echo "ADOT220501221351118" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "45" fi fi while true do curl46=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254207389","emailAddress":"carrucini616@gmail.com"}}' \ --compressed` if [[ $curl46 =~ "blocked" ]]; then link46=`echo $curl46 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link46` read -n 1 -p "blocked" else break fi done if [[ $curl46 =~ "error" ]]; then echo "46-Sai info" echo "'3942254207389" >> track-OrderID-ADOT.txt echo "ADOT220501223348549" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum46=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"21474150"' ]]; then echo "'3942254207389" >> track-OrderID-ADOT.txt echo ADOT220501223348549 >> track-email-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl46 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum46 == `md5 track-OrderID-ADOT.txt` ]]; then echo "46-Khác Item" echo "'3942254207389" >> track-OrderID-ADOT.txt echo "ADOT220501223348549" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "46" fi fi while true do curl47=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254568536","emailAddress":"openbox2@charter.net"}}' \ --compressed` if [[ $curl47 =~ "blocked" ]]; then link47=`echo $curl47 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link47` read -n 1 -p "blocked" else break fi done if [[ $curl47 =~ "error" ]]; then echo "47-Sai info" echo "'3942254568536" >> track-OrderID-ADOT.txt echo "ADOT220501235848934" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum47=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"313546419"' ]]; then echo "'3942254568536" >> track-OrderID-ADOT.txt echo ADOT220501235848934 >> track-email-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl47 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum47 == `md5 track-OrderID-ADOT.txt` ]]; then echo "47-Khác Item" echo "'3942254568536" >> track-OrderID-ADOT.txt echo "ADOT220501235848934" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "47" fi fi while true do curl48=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258911403","emailAddress":"agrama15@yahoo.com"}}' \ --compressed` if [[ $curl48 =~ "blocked" ]]; then link48=`echo $curl48 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link48` read -n 1 -p "blocked" else break fi done if [[ $curl48 =~ "error" ]]; then echo "48-Sai info" echo "'3962258911403" >> track-OrderID-ADOT.txt echo "ADOT220502013849605" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum48=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"348284886"' ]]; then echo "'3962258911403" >> track-OrderID-ADOT.txt echo ADOT220502013849605 >> track-email-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl48 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum48 == `md5 track-OrderID-ADOT.txt` ]]; then echo "48-Khác Item" echo "'3962258911403" >> track-OrderID-ADOT.txt echo "ADOT220502013849605" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "48" fi fi while true do curl49=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254086837","emailAddress":"steinj@ptd.net"}}' \ --compressed` if [[ $curl49 =~ "blocked" ]]; then link49=`echo $curl49 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link49` read -n 1 -p "blocked" else break fi done if [[ $curl49 =~ "error" ]]; then echo "49-Sai info" echo "'3942254086837" >> track-OrderID-ADOT.txt echo "ADOT220503051352295" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum49=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"348284886"' ]]; then echo "'3942254086837" >> track-OrderID-ADOT.txt echo ADOT220503051352295 >> track-email-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl49 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum49 == `md5 track-OrderID-ADOT.txt` ]]; then echo "49-Khác Item" echo "'3942254086837" >> track-OrderID-ADOT.txt echo "ADOT220503051352295" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "49" fi fi while true do curl50=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254380473","emailAddress":"tommyrickettjr1968@gmail.com"}}' \ --compressed` if [[ $curl50 =~ "blocked" ]]; then link50=`echo $curl50 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link50` read -n 1 -p "blocked" else break fi done if [[ $curl50 =~ "error" ]]; then echo "50-Sai info" echo "'3942254380473" >> track-OrderID-ADOT.txt echo "ADOT220503053849104" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum50=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"348284886"' ]]; then echo "'3942254380473" >> track-OrderID-ADOT.txt echo ADOT220503053849104 >> track-email-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl50 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum50 == `md5 track-OrderID-ADOT.txt` ]]; then echo "50-Khác Item" echo "'3942254380473" >> track-OrderID-ADOT.txt echo "ADOT220503053849104" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "50" fi fi while true do curl51=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254879259","emailAddress":"tonicrochet@msn.com"}}' \ --compressed` if [[ $curl51 =~ "blocked" ]]; then link51=`echo $curl51 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link51` read -n 1 -p "blocked" else break fi done if [[ $curl51 =~ "error" ]]; then echo "51-Sai info" echo "'3942254879259" >> track-OrderID-ADOT.txt echo "ADOT220428084351590" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum51=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"970197920"' ]]; then echo "'3942254879259" >> track-OrderID-ADOT.txt echo ADOT220428084351590 >> track-email-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl51 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum51 == `md5 track-OrderID-ADOT.txt` ]]; then echo "51-Khác Item" echo "'3942254879259" >> track-OrderID-ADOT.txt echo "ADOT220428084351590" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "51" fi fi while true do curl52=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3942254784218","emailAddress":"cindibutcher@gmail.com"}}' \ --compressed` if [[ $curl52 =~ "blocked" ]]; then link52=`echo $curl52 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link52` read -n 1 -p "blocked" else break fi done if [[ $curl52 =~ "error" ]]; then echo "52-Sai info" echo "'3942254784218" >> track-OrderID-ADOT.txt echo "ADOT220427044846875" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum52=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"285333157"' ]]; then echo "'3942254784218" >> track-OrderID-ADOT.txt echo ADOT220427044846875 >> track-email-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl52 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum52 == `md5 track-OrderID-ADOT.txt` ]]; then echo "52-Khác Item" echo "'3942254784218" >> track-OrderID-ADOT.txt echo "ADOT220427044846875" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "52" fi fi while true do curl53=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256908309","emailAddress":"delaneymilbraney@gmail.com"}}' \ --compressed` if [[ $curl53 =~ "blocked" ]]; then link53=`echo $curl53 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link53` read -n 1 -p "blocked" else break fi done if [[ $curl53 =~ "error" ]]; then echo "53-Sai info" echo "'3952256908309" >> track-OrderID-ADOT.txt echo "ADOT22050319285279" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum53=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"818068049"' ]]; then echo "'3952256908309" >> track-OrderID-ADOT.txt echo ADOT22050319285279 >> track-email-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl53 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum53 == `md5 track-OrderID-ADOT.txt` ]]; then echo "53-Khác Item" echo "'3952256908309" >> track-OrderID-ADOT.txt echo "ADOT22050319285279" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "53" fi fi while true do curl54=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258811968","emailAddress":"claudiaqperez@gmail.com"}}' \ --compressed` if [[ $curl54 =~ "blocked" ]]; then link54=`echo $curl54 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link54` read -n 1 -p "blocked" else break fi done if [[ $curl54 =~ "error" ]]; then echo "54-Sai info" echo "'3962258811968" >> track-OrderID-ADOT.txt echo "ADOT220504034349387" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum54=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"37550884"' ]]; then echo "'3962258811968" >> track-OrderID-ADOT.txt echo ADOT220504034349387 >> track-email-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl54 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum54 == `md5 track-OrderID-ADOT.txt` ]]; then echo "54-Khác Item" echo "'3962258811968" >> track-OrderID-ADOT.txt echo "ADOT220504034349387" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "54" fi fi while true do curl55=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261575703","emailAddress":"tbsustar23@gmail.com"}}' \ --compressed` if [[ $curl55 =~ "blocked" ]]; then link55=`echo $curl55 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link55` read -n 1 -p "blocked" else break fi done if [[ $curl55 =~ "error" ]]; then echo "55-Sai info" echo "'3982261575703" >> track-OrderID-ADOT.txt echo "ADOT220429033348549" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum55=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"21474150"' ]]; then echo "'3982261575703" >> track-OrderID-ADOT.txt echo ADOT220429033348549 >> track-email-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl55 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum55 == `md5 track-OrderID-ADOT.txt` ]]; then echo "55-Khác Item" echo "'3982261575703" >> track-OrderID-ADOT.txt echo "ADOT220429033348549" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "55" fi fi while true do curl56=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258026035","emailAddress":"collinforseth@gmail.com"}}' \ --compressed` if [[ $curl56 =~ "blocked" ]]; then link56=`echo $curl56 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link56` read -n 1 -p "blocked" else break fi done if [[ $curl56 =~ "error" ]]; then echo "56-Sai info" echo "'3962258026035" >> track-OrderID-ADOT.txt echo "ADOT22042922195270" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum56=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"36611908"' ]]; then echo "'3962258026035" >> track-OrderID-ADOT.txt echo ADOT22042922195270 >> track-email-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl56 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum56 == `md5 track-OrderID-ADOT.txt` ]]; then echo "56-Khác Item" echo "'3962258026035" >> track-OrderID-ADOT.txt echo "ADOT22042922195270" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "56" fi fi while true do curl57=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256675150","emailAddress":"jklemoine@gmail.com"}}' \ --compressed` if [[ $curl57 =~ "blocked" ]]; then link57=`echo $curl57 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link57` read -n 1 -p "blocked" else break fi done if [[ $curl57 =~ "error" ]]; then echo "57-Sai info" echo "'3952256675150" >> track-OrderID-ADOT.txt echo "ADOT220427012847357" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum57=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"996906813"' ]]; then echo "'3952256675150" >> track-OrderID-ADOT.txt echo ADOT220427012847357 >> track-email-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl57 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum57 == `md5 track-OrderID-ADOT.txt` ]]; then echo "57-Khác Item" echo "'3952256675150" >> track-OrderID-ADOT.txt echo "ADOT220427012847357" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "57" fi fi while true do curl58=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256657078","emailAddress":"melaniecranfill@yahoo.com"}}' \ --compressed` if [[ $curl58 =~ "blocked" ]]; then link58=`echo $curl58 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link58` read -n 1 -p "blocked" else break fi done if [[ $curl58 =~ "error" ]]; then echo "58-Sai info" echo "'3952256657078" >> track-OrderID-ADOT.txt echo "ADOT220504084846411" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum58=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"112429682"' ]]; then echo "'3952256657078" >> track-OrderID-ADOT.txt echo ADOT220504084846411 >> track-email-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl58 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum58 == `md5 track-OrderID-ADOT.txt` ]]; then echo "58-Khác Item" echo "'3952256657078" >> track-OrderID-ADOT.txt echo "ADOT220504084846411" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "58" fi fi while true do curl59=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256257527","emailAddress":"shannamoon050712@gmail.com"}}' \ --compressed` if [[ $curl59 =~ "blocked" ]]; then link59=`echo $curl59 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link59` read -n 1 -p "blocked" else break fi done if [[ $curl59 =~ "error" ]]; then echo "59-Sai info" echo "'3952256257527" >> track-OrderID-ADOT.txt echo "ADOT220502032847659" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum59=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"212029414"' ]]; then echo "'3952256257527" >> track-OrderID-ADOT.txt echo ADOT220502032847659 >> track-email-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl59 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum59 == `md5 track-OrderID-ADOT.txt` ]]; then echo "59-Khác Item" echo "'3952256257527" >> track-OrderID-ADOT.txt echo "ADOT220502032847659" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "59" fi fi while true do curl60=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258009204","emailAddress":"nadra999@yahoo.com"}}' \ --compressed` if [[ $curl60 =~ "blocked" ]]; then link60=`echo $curl60 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link60` read -n 1 -p "blocked" else break fi done if [[ $curl60 =~ "error" ]]; then echo "60-Sai info" echo "'3962258009204" >> track-OrderID-ADOT.txt echo "ADOT220501030345142" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum60=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"147929696"' ]]; then echo "'3962258009204" >> track-OrderID-ADOT.txt echo ADOT220501030345142 >> track-email-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl60 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum60 == `md5 track-OrderID-ADOT.txt` ]]; then echo "60-Khác Item" echo "'3962258009204" >> track-OrderID-ADOT.txt echo "ADOT220501030345142" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "60" fi fi while true do curl61=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260305135","emailAddress":"leighannrelliott@gmail.com"}}' \ --compressed` if [[ $curl61 =~ "blocked" ]]; then link61=`echo $curl61 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link61` read -n 1 -p "blocked" else break fi done if [[ $curl61 =~ "error" ]]; then echo "61-Sai info" echo "'3972260305135" >> track-OrderID-ADOT.txt echo "ADOT220501043844678" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum61=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"290930472"' ]]; then echo "'3972260305135" >> track-OrderID-ADOT.txt echo ADOT220501043844678 >> track-email-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl61 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum61 == `md5 track-OrderID-ADOT.txt` ]]; then echo "61-Khác Item" echo "'3972260305135" >> track-OrderID-ADOT.txt echo "ADOT220501043844678" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "61" fi fi while true do curl62=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256588375","emailAddress":"sandy4044@aol.com"}}' \ --compressed` if [[ $curl62 =~ "blocked" ]]; then link62=`echo $curl62 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link62` read -n 1 -p "blocked" else break fi done if [[ $curl62 =~ "error" ]]; then echo "62-Sai info" echo "'3952256588375" >> track-OrderID-ADOT.txt echo "ADOT220501050844311" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum62=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"672388349"' ]]; then echo "'3952256588375" >> track-OrderID-ADOT.txt echo ADOT220501050844311 >> track-email-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl62 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum62 == `md5 track-OrderID-ADOT.txt` ]]; then echo "62-Khác Item" echo "'3952256588375" >> track-OrderID-ADOT.txt echo "ADOT220501050844311" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "62" fi fi while true do curl63=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258216320","emailAddress":"km.magtalas@gmail.com"}}' \ --compressed` if [[ $curl63 =~ "blocked" ]]; then link63=`echo $curl63 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link63` read -n 1 -p "blocked" else break fi done if [[ $curl63 =~ "error" ]]; then echo "63-Sai info" echo "'3962258216320" >> track-OrderID-ADOT.txt echo "ADOT220427123346288" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum63=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"168149882"' ]]; then echo "'3962258216320" >> track-OrderID-ADOT.txt echo ADOT220427123346288 >> track-email-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl63 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum63 == `md5 track-OrderID-ADOT.txt` ]]; then echo "63-Khác Item" echo "'3962258216320" >> track-OrderID-ADOT.txt echo "ADOT220427123346288" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "63" fi fi while true do curl64=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256886597","emailAddress":"lisaervin@consolidated.net"}}' \ --compressed` if [[ $curl64 =~ "blocked" ]]; then link64=`echo $curl64 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link64` read -n 1 -p "blocked" else break fi done if [[ $curl64 =~ "error" ]]; then echo "64-Sai info" echo "'3952256886597" >> track-OrderID-ADOT.txt echo "ADOT220426120343771" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum64=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"637665575"' ]]; then echo "'3952256886597" >> track-OrderID-ADOT.txt echo ADOT220426120343771 >> track-email-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl64 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum64 == `md5 track-OrderID-ADOT.txt` ]]; then echo "64-Khác Item" echo "'3952256886597" >> track-OrderID-ADOT.txt echo "ADOT220426120343771" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "64" fi fi while true do curl65=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256182484","emailAddress":"ashleylibretto@yahoo.com"}}' \ --compressed` if [[ $curl65 =~ "blocked" ]]; then link65=`echo $curl65 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link65` read -n 1 -p "blocked" else break fi done if [[ $curl65 =~ "error" ]]; then echo "65-Sai info" echo "'3952256182484" >> track-OrderID-ADOT.txt echo "1059DarrylHutchins102QuartermaineCtCaryNC275135152UShttpswwwwalmartcomipXERATHOutdoorCollapsibleFoldingUtilityWagonwithUniversal360AllTerrainWheelsforShoppingGardenParkPicnicandBeachCampingBlue246674885" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum65=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"246674885"' ]]; then echo "'3952256182484" >> track-OrderID-ADOT.txt echo 1059DarrylHutchins102QuartermaineCtCaryNC275135152UShttpswwwwalmartcomipXERATHOutdoorCollapsibleFoldingUtilityWagonwithUniversal360AllTerrainWheelsforShoppingGardenParkPicnicandBeachCampingBlue246674885 >> track-email-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl65 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum65 == `md5 track-OrderID-ADOT.txt` ]]; then echo "65-Khác Item" echo "'3952256182484" >> track-OrderID-ADOT.txt echo "1059DarrylHutchins102QuartermaineCtCaryNC275135152UShttpswwwwalmartcomipXERATHOutdoorCollapsibleFoldingUtilityWagonwithUniversal360AllTerrainWheelsforShoppingGardenParkPicnicandBeachCampingBlue246674885" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "65" fi fi while true do curl66=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3952256583644","emailAddress":"shannonmcherry@gmail.com"}}' \ --compressed` if [[ $curl66 =~ "blocked" ]]; then link66=`echo $curl66 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link66` read -n 1 -p "blocked" else break fi done if [[ $curl66 =~ "error" ]]; then echo "66-Sai info" echo "'3952256583644" >> track-OrderID-ADOT.txt echo "ADOT220425204845111" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum66=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"300578963"' ]]; then echo "'3952256583644" >> track-OrderID-ADOT.txt echo ADOT220425204845111 >> track-email-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl66 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum66 == `md5 track-OrderID-ADOT.txt` ]]; then echo "66-Khác Item" echo "'3952256583644" >> track-OrderID-ADOT.txt echo "ADOT220425204845111" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "66" fi fi while true do curl67=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3962258709795","emailAddress":"gibj200@earthlink.net"}}' \ --compressed` if [[ $curl67 =~ "blocked" ]]; then link67=`echo $curl67 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link67` read -n 1 -p "blocked" else break fi done if [[ $curl67 =~ "error" ]]; then echo "67-Sai info" echo "'3962258709795" >> track-OrderID-ADOT.txt echo "ADOT220427001908682" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum67=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"377870589"' ]]; then echo "'3962258709795" >> track-OrderID-ADOT.txt echo ADOT220427001908682 >> track-email-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl67 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum67 == `md5 track-OrderID-ADOT.txt` ]]; then echo "67-Khác Item" echo "'3962258709795" >> track-OrderID-ADOT.txt echo "ADOT220427001908682" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "67" fi fi while true do curl68=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261374253","emailAddress":"abbyjdeangelis@hotmail.com"}}' \ --compressed` if [[ $curl68 =~ "blocked" ]]; then link68=`echo $curl68 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link68` read -n 1 -p "blocked" else break fi done if [[ $curl68 =~ "error" ]]; then echo "68-Sai info" echo "'3982261374253" >> track-OrderID-ADOT.txt echo "ADOT220506021349552" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum68=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"996906813"' ]]; then echo "'3982261374253" >> track-OrderID-ADOT.txt echo ADOT220506021349552 >> track-email-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl68 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum68 == `md5 track-OrderID-ADOT.txt` ]]; then echo "68-Khác Item" echo "'3982261374253" >> track-OrderID-ADOT.txt echo "ADOT220506021349552" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "68" fi fi while true do curl69=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261969939","emailAddress":"icupkn69@aol.com"}}' \ --compressed` if [[ $curl69 =~ "blocked" ]]; then link69=`echo $curl69 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link69` read -n 1 -p "blocked" else break fi done if [[ $curl69 =~ "error" ]]; then echo "69-Sai info" echo "'3982261969939" >> track-OrderID-ADOT.txt echo "ADOT220506055850718" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum69=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"240828726"' ]]; then echo "'3982261969939" >> track-OrderID-ADOT.txt echo ADOT220506055850718 >> track-email-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl69 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum69 == `md5 track-OrderID-ADOT.txt` ]]; then echo "69-Khác Item" echo "'3982261969939" >> track-OrderID-ADOT.txt echo "ADOT220506055850718" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "69" fi fi while true do curl70=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261877869","emailAddress":"gamefreak291@aol.com"}}' \ --compressed` if [[ $curl70 =~ "blocked" ]]; then link70=`echo $curl70 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link70` read -n 1 -p "blocked" else break fi done if [[ $curl70 =~ "error" ]]; then echo "70-Sai info" echo "'3982261877869" >> track-OrderID-ADOT.txt echo "ADOT220506073852142" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum70=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"680614474"' ]]; then echo "'3982261877869" >> track-OrderID-ADOT.txt echo ADOT220506073852142 >> track-email-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl70 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum70 == `md5 track-OrderID-ADOT.txt` ]]; then echo "70-Khác Item" echo "'3982261877869" >> track-OrderID-ADOT.txt echo "ADOT220506073852142" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "70" fi fi while true do curl71=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3972260619348","emailAddress":"awells454@yahoo.com"}}' \ --compressed` if [[ $curl71 =~ "blocked" ]]; then link71=`echo $curl71 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link71` read -n 1 -p "blocked" else break fi done if [[ $curl71 =~ "error" ]]; then echo "71-Sai info" echo "'3972260619348" >> track-OrderID-ADOT.txt echo "ADOT220502044348111" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum71=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"15042526"' ]]; then echo "'3972260619348" >> track-OrderID-ADOT.txt echo ADOT220502044348111 >> track-email-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl71 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum71 == `md5 track-OrderID-ADOT.txt` ]]; then echo "71-Khác Item" echo "'3972260619348" >> track-OrderID-ADOT.txt echo "ADOT220502044348111" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "71" fi fi while true do curl72=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3982261675762","emailAddress":"inman22@yahoo.com"}}' \ --compressed` if [[ $curl72 =~ "blocked" ]]; then link72=`echo $curl72 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link72` read -n 1 -p "blocked" else break fi done if [[ $curl72 =~ "error" ]]; then echo "72-Sai info" echo "'3982261675762" >> track-OrderID-ADOT.txt echo "ADOT220502071847663" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else sum72=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"56113342"' ]]; then echo "'3982261675762" >> track-OrderID-ADOT.txt echo ADOT220502071847663 >> track-email-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl72 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt break fi done done if [[ $sum72 == `md5 track-OrderID-ADOT.txt` ]]; then echo "72-Khác Item" echo "'3982261675762" >> track-OrderID-ADOT.txt echo "ADOT220502071847663" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'wm-Hùng Lee" >> track-CO-ADOT.txt else echo "72" fi fi while true do curl73=`curl -s 'https://www.walmart.com/orchestra/home/graphql' \ -H 'authority: www.walmart.com' \ -H 'sec-ch-ua: " Not;A Brand";v="99", "Microsoft Edge";v="97", "Chromium";v="97"' \ -H 'x-o-platform: rweb' \ -H 'dnt: 1' \ -H 'x-o-correlation-id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'device_profile_ref_id: E75qSsFMPUgfUnNtpgnTkFKD0ikbbLGTuMXJ' \ -H 'x-latency-trace: 1' \ -H 'wm_mp: true' \ -H 'x-o-market: us' \ -H 'x-o-platform-version: main-347-5e3156' \ -H 'x-o-gql-query: query getGuestOrder' \ -H 'wm_page_url: https://www.walmart.com/orders' \ -H 'x-apollo-operation-name: getGuestOrder' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.39' \ -H 'x-o-segment: oaoh' \ -H 'content-type: application/json' \ -H 'accept: application/json' \ -H 'x-enable-server-timing: 1' \ -H 'x-o-ccm: server' \ -H 'wm_qos.correlation_id: pn9BnlEx0zDiyvRGJ6nL5BS9pDN7erB017Nf' \ -H 'origin: https://www.walmart.com' \ -H 'sec-fetch-site: same-origin' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-dest: empty' \ -H 'referer: https://www.walmart.com/orders' \ -H 'accept-language: vi' \ --data-raw $'{"query":"query getGuestOrder($orderId:ID\u0021 $emailAddress:String\u0021){guestOrder(input:{id:$orderId emailAddress:$emailAddress}){...OrderFieldsFragment}}fragment cancelReason on OrderCancelReason{__typename subReasonCode subDescription}fragment priceDetailFragment on OrderPriceDetailRow{label value displayValue info{title message}rowInfo{...orderPriceDetailRowInfo}}fragment orderPriceDetailRowInfo on OrderPriceDetailRowInfo{title message{...textFragment}}fragment price on Price{displayValue value}fragment variants on MapEntry{name value}fragment OrderAddOn on OrderAddOn{lineId uniqueLineId productInfo{name usItemId offerId}quantityString quantityLabel type fulfillmentInstructions{...textFragment}actions{manageProtectionPlan{...orderActionFragment}cancel}priceInfo{linePrice{...price}}quantity isActive}fragment orderDonationDetails on OrderDonationDetails{message{...textFragment}emailReceipt emailReceiptToken status{...textFragment}errorStatus}fragment orderLineItem on OrderLineItem{id uniqueId actions{contactSeller cancel addToCart configureCake reviewItem resendEGiftCardToken protectionPlan{...orderActionFragment}manageProtectionPlan{...orderActionFragment}}isGift digitalDeliveryMessage quantity quantityString quantityLabel isSubstitutionSelected fulfilledItems{id quantityString priceInfo{itemPrice{value}}productInfo{usItemId name}}isReturnable returnEligibilityMessage productInfo{name usItemId imageInfo{thumbnailUrl}canonicalUrl offerId orderLimit orderMinLimit weightIncrement salesUnit salesUnitType isSubstitutionEligible isAlcohol}reshop{reshopMessage isShippingAvailable minPromiseDate maxPromiseDate}selectedVariants{...variants}variantAdditionalInfo{parts{text nativeAction}}priceInfo{priceDisplayCodes{showItemPrice priceDisplayCondition finalCostByWeight}itemPrice{...price}linePrice{...price}unitPrice{...price}preDiscountedLinePrice{...price}additionalLines{name value}}discounts{label labelText{...textFragment}}itemReviewed activationCodes{label code}protectionPlanMessage{...textFragment}showSeller isShippedByWalmart seller{id name isPro}digitalDeliveryPhoneNumber addOns{...OrderAddOn}multiboxBundleId}fragment DriverFragment on Driver{id firstName photoUrl}fragment OrderGroupFragment on OrderGroup{driver{...DriverFragment}deliveryDate fulfillmentType status{...OrderGroupStatusFragment}showSeller isShippedByWalmart seller{...SellerFragment}id itemCount items{...LiteLineItemFragment}pickupPerson{firstName lastName email}accessPointId shipment{...ShipmentFragment}returnEligibilityMessage actions{...OrderGroupActionsFragment}recipientEmailAddress digitalDelivery{...DigitalDeliveryFragment}tireInstallationReservation{status extraText reservationId}}fragment OrderGroupStatusFragment on OrderGroupStatus{statusType showStatusTracker statusTracker{status label isCurrent}message{...textFragment}subtext subMessage{...textFragment}notice helpCenterText{...textFragment}}fragment textFragment on Text{parts{bold url text nativeAction lineBreak}}fragment LiteLineItemFragment on OrderLineItem{id quantity productInfo{name usItemId imageInfo{thumbnailUrl}offerId isAlcohol}priceInfo{linePrice{...price}}}fragment SellerFragment on GroupSeller{id name isPro}fragment DigitalDeliveryFragment on DigitalDelivery{title name instructions{...textFragment}}fragment ShipmentFragment on Shipment{id trackingNumber isExternalTracking trackingUrl proofOfDelivery{...ProofOfDeliveryFragment}}fragment OrderGroupActionsFragment on OrderGroupActions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson editTip tip rateDriver cancel enableTip{...orderActionFragment}enableEdit{...orderActionFragment}rescheduleTireInstall{...orderActionFragment}cancelTireInstall{...orderActionFragment}help viewCancellationDetails{...cancellationDetailsActionFragment}}fragment cancellationDetailsActionFragment on CancellationDetailsAction{label heading text{...textFragment}}fragment ProofOfDeliveryFragment on ProofOfDelivery{photoUrl photoPreviewUrl showPreview}fragment DeliveryInstructionsFragment on DeliveryInstructions{text type typeText}fragment GiftDetailsFragment on GiftDetails{recipientAddress{fullName}recipientEmail senderName giftMessage}fragment SubstitutionAction on SubstitutionAction{message label type}fragment ODPGroupCategoryFragment on OrderCategory{type name subtext returnMessage substitutionsBanner{...textFragment}showExtendedSubstitutions actions{substitutions{...SubstitutionAction}nilPickReshop{message action{text url}}returnDetails viewCancellationDetails{...cancellationDetailsActionFragment}trackOnInHomeApp}banner{...textFragment}accordionState items{...orderLineItem}substitutions{...orderLineItem fulfilledItems{...orderLineItem}}returnInfo{...returnInfoFragment}}fragment ODPGroupFragment on OrderGroup{id fulfillmentType deliveryMessage deliveryAddress{fullName firstName lastName address{...addressFragment}}deliveryInstructions{...DeliveryInstructionsFragment}deliveryPreferences{text{...textFragment}cta{...orderActionFragment}}editSubstitutionsCutOff status{statusType showStatusTracker message{...textFragment}notice helpCenterText{...textFragment}}itemCount isCategorized categories{...ODPGroupCategoryFragment}seller{id name isPro}shipment{id trackingNumber}actions{reorder edit track changeSlot checkin editDeliveryInstructions editPickupPerson tip cancel help enableTip{...orderActionFragment}enableEdit{...orderActionFragment}viewCancellationDetails{...cancellationDetailsActionFragment}enableInHome{...orderActionFragment}createGiftReceipt}cutOffTimestamp isEditSubstitutionsEligible isInHome giftDetails{...GiftDetailsFragment}donationDetails{...orderDonationDetails}}fragment returnInfoFragment on ReturnInfo{returnOrderId type refundPriceDetails{__typename...refundPriceDetailsFragment}refundMessage tierRefundMessage paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}}actions{__typename generate scheduleOrModifyPickup{text url}reschedulePickup editPickupContact}shippingLabelUrl qrCodeImageUrl carriers{__typename id name}pickupCarrier pickupContact{nameAndAddress{fullName firstName lastName address{addressString city state postalCode addressLineOne addressLineTwo country}}phone}pickupConfirmationNumber bannerMessage{...textFragment}}fragment refundPriceDetailsFragment on RefundPriceDetails{subTotal{__typename...orderPriceDetailRowFragment}fees{__typename...orderPriceDetailRowFragment}discounts{__typename...orderPriceDetailRowFragment}taxTotal{__typename...orderPriceDetailRowFragment}grandTotal{__typename...orderPriceDetailRowFragment}}fragment orderPriceDetailRowFragment on OrderPriceDetailRow{label displayValue value info{__typename title message}}fragment addressFragment on OrderAddress{addressString addressLineOne addressLineTwo state postalCode city}fragment ODPPickupInfo on OrderGroup{pickupInstructions pickupPerson{...person}alternatePickupPerson{...person}store{id name address{...addressFragment}}}fragment person on OrderPickupPerson{firstName lastName email}fragment ODPTippingInfo on OrderGroup{addTipMessage{...textFragment}driver{...DriverFragment}tipping{min{...price}max{...price}suggested{...price}preselected}subtotal{...price}}fragment orderActionFragment on Action{text url}fragment orderCustomer on OrderCustomer{id firstName lastName email isGuest isEmailRegistered}fragment OrderFieldsFragment on Order{__typename id version type customer{...orderCustomer}displayId idBarcodeImageUrl(barWidth:3 barHeight:100) isFuelPurchase title shortTitle timezone tippableGroup{...OrderGroupFragment}amendableGroup{id changeSlotIterationsLeft cutOffTimestamp fulfillmentType deliveryAddress{fullName firstName lastName address{addressString addressLineOne addressLineTwo state postalCode city country}}isAmendInProgress}substitutionsBanner{heading subheading longSubheading}groups_2101{__typename...OrderGroupFragment...ODPGroupFragment...ODPPickupInfo...ODPTippingInfo}multiboxBundles{...orderLineItem}itemCancelReasons{__typename...cancelReason}groupCancelReasons{__typename...cancelReason}priceDetails{__typename subTotal{__typename...priceDetailFragment}taxTotal{__typename...priceDetailFragment}grandTotal{__typename...priceDetailFragment}authorizationAmount{__typename...priceDetailFragment}fees{__typename...priceDetailFragment}discounts{__typename...priceDetailFragment}minimumThreshold{__typename...price}belowMinimumFee{__typename...priceDetailFragment}driverTip{__typename...priceDetailFragment}donations{__typename...priceDetailFragment}}paymentMethods{__typename description cardType paymentType displayValues message{...textFragment}actions{connectToCapitalOne{...orderActionFragment}visitAffirm{...orderActionFragment}}}actions{__typename return pendingReturn cancel startReturn{...orderActionFragment}reorder}banners{...textFragment}}","variables":{"orderId":"3882241962208","emailAddress":"bestbu864@gmail.com"}}' \ --compressed` if [[ $curl73 =~ "blocked" ]]; then link73=`echo $curl73 | jq '.redirectUrl' | sed 's/"//g'` `open -n -a /Applications/Microsoft\ Edge.app --args --profile-directory=Default https://walmart.com$link73` read -n 1 -p "blocked" else break fi done if [[ $curl73 =~ "error" ]]; then echo "73-Sai info" echo "'3882241962208" >> track-OrderID-ADOT.txt echo "105213jamesFox2669GoshenChurchSouthRdBowlingGreenKY421039524UShttpswwwwalmartcomipZENSTYLE10x7ftPortableGolfNetHittingNetPracticeDrivingIndoorOutdoorwCarryBag608059902" >> track-email-ADOT.txt echo "Sai info" >> track-usItemId-ADOT.txt echo "Sai info" >> track-priceValue-ADOT.txt echo "Sai info" >> track-fullName-ADOT.txt echo "Sai info" >> track-address-ADOT.txt echo "Sai info" >> track-status-ADOT.txt echo "Sai info" >> track-number-ADOT.txt echo "Sai info" >> track-url-ADOT.txt echo "Sai info" >> track-categoriesType-ADOT.txt echo "'Huy Hồng" >> track-CO-ADOT.txt else sum73=`md5 track-OrderID-ADOT.txt` for (( i=0; i<=4; i++ )) do for (( j=0; j<=4; j++)) do if [[ `echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId'` == '"608059902"' ]]; then echo "'3882241962208" >> track-OrderID-ADOT.txt echo 105213jamesFox2669GoshenChurchSouthRdBowlingGreenKY421039524UShttpswwwwalmartcomipZENSTYLE10x7ftPortableGolfNetHittingNetPracticeDrivingIndoorOutdoorwCarryBag608059902 >> track-email-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].productInfo.usItemId' >> track-usItemId-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].items['${j[@]}'].priceInfo.linePrice.value' >> track-priceValue-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.fullName' >> track-fullName-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].deliveryAddress.address.addressString' >> track-address-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].status.message.parts[].text' >> track-status-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingNumber' | sed 's/null//g' >> track-number-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].shipment.trackingUrl' | sed 's/null//g' >> track-url-ADOT.txt echo $curl73 | jq '.data.guestOrder.groups_2101['${i[@]}'].categories[].type' >> track-categoriesType-ADOT.txt echo "'Huy Hồng" >> track-CO-ADOT.txt break fi done done if [[ $sum73 == `md5 track-OrderID-ADOT.txt` ]]; then echo "73-Khác Item" echo "'3882241962208" >> track-OrderID-ADOT.txt echo "105213jamesFox2669GoshenChurchSouthRdBowlingGreenKY421039524UShttpswwwwalmartcomipZENSTYLE10x7ftPortableGolfNetHittingNetPracticeDrivingIndoorOutdoorwCarryBag608059902" >> track-email-ADOT.txt echo "Khác Item" >> track-usItemId-ADOT.txt echo "Khác Item" >> track-priceValue-ADOT.txt echo "Khác Item" >> track-fullName-ADOT.txt echo "Khác Item" >> track-address-ADOT.txt echo "Khác Item" >> track-status-ADOT.txt echo "Khác Item" >> track-number-ADOT.txt echo "Khác Item" >> track-url-ADOT.txt echo "Khác Item" >> track-categoriesType-ADOT.txt echo "'Huy Hồng" >> track-CO-ADOT.txt else echo "73" fi fi git add -A . git commit -m --allow-empty git push git push origin HEAD -f gitCommit=`git rev-parse HEAD` linkGit=`echo https://raw.githubusercontent.com/DungSherlock/eBay/`$gitCommit`echo /` linkApi=`echo https://script.google.com/macros/s/AKfycbxbhCQuu9ckpYTmrfV6WtMTnqdIJg0lf_bKVOvUZLHsVmuPCIbhtGv_SQ5bbLF_NeVUkA/exec?` linkPost=$linkApi`echo Item ID==IMPORTDATA\(\"`$linkGit`echo track-usItemId-ADOT.txt\"\)\&Giá==IMPORTDATA\(\"`$linkGit`echo track-priceValue-ADOT.txt\"\)\&Tên==IMPORTDATA\(\"`$linkGit`echo track-fullName-ADOT.txt\"\)\&Địa chỉ==index\(IMPORTDATA\(\"`$linkGit`echo track-address-ADOT.txt\"\),,1\)\&Status==IMPORTDATA\(\"`$linkGit`echo track-status-ADOT.txt\"\)\&Tracking Number==IMPORTDATA\(\"`$linkGit`echo track-number-ADOT.txt\"\)\&Tracking URL==IMPORTDATA\(\"`$linkGit`echo track-url-ADOT.txt\"\)\&Email==IMPORTDATA\(\"`$linkGit`echo track-email-ADOT.txt\"\)\&Order==IMPORTDATA\(\"`$linkGit`echo track-OrderID-ADOT.txt\"\)\&categoriesType==IMPORTDATA\(\"`$linkGit`echo track-categoriesType-ADOT.txt\"\)\&Order==IMPORTDATA\(\"`$linkGit`echo track-OrderID-ADOT.txt\"\)\&categoriesType==IMPORTDATA\(\"`$linkGit`echo track-CO-ADOT.txt\"\)` echo $linkPost
def score(strings):     scores = []     for string in strings:         score = 0         seen = set()         for letter in string:             if letter not in seen:                 score += 1                 seen.add(letter)             else:                 score -= 1         scores.append(score)     return scores
#!/usr/bin/env bash # get path of current script: https://stackoverflow.com/a/39340259/207661 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" pushd "$SCRIPT_DIR" >/dev/null set -e set -x debug=false gcc=false # Parse command line arguments while [[ $# -gt 0 ]] do key="$1" case $key in --debug) debug=true shift # past argument ;; --gcc) gcc=true shift # past argument ;; esac done function version_less_than_equal_to() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" = "$1"; } # check for rpclib RPC_VERSION_FOLDER="rpclib-2.3.0" if [ ! -d "./external/rpclib/$RPC_VERSION_FOLDER" ]; then echo "ERROR: new version of AirSim requires newer rpclib." echo "please run setup.sh first and then run build.sh again." exit 1 fi # check for local cmake build created by setup.sh if [ -d "./cmake_build" ]; then if [ "$(uname)" == "Darwin" ]; then CMAKE="$(greadlink -f cmake_build/bin/cmake)" else CMAKE="$(readlink -f cmake_build/bin/cmake)" fi else CMAKE=$(which cmake) fi # variable for build output if $debug; then build_dir=build_debug else build_dir=build_release fi if [ "$(uname)" == "Darwin" ]; then # llvm v8 is too old for Big Sur see # https://github.com/microsoft/AirSim/issues/3691 #export CC=/usr/local/opt/llvm@8/bin/clang #export CXX=/usr/local/opt/llvm@8/bin/clang++ #now pick up whatever setup.sh installs export CC="$(brew --prefix)/opt/llvm/bin/clang" export CXX="$(brew --prefix)/opt/llvm/bin/clang++" else if $gcc; then export CC="gcc-8" export CXX="g++-8" else export CC="clang-8" export CXX="clang++-8" fi fi #install EIGEN library if [[ ! -d "./AirLib/deps/eigen3/Eigen" ]]; then echo "### Eigen is not installed. Please run setup.sh first." exit 1 fi echo "putting build in $build_dir folder, to clean, just delete the directory..." # this ensures the cmake files will be built in our $build_dir instead. if [[ -f "./cmake/CMakeCache.txt" ]]; then rm "./cmake/CMakeCache.txt" fi if [[ -d "./cmake/CMakeFiles" ]]; then rm -rf "./cmake/CMakeFiles" fi if [[ ! -d $build_dir ]]; then mkdir -p $build_dir fi # Fix for Unreal/Unity using x86_64 (Rosetta) on Apple Silicon hardware. CMAKE_VARS= if [ "$(uname)" == "Darwin" ]; then CMAKE_VARS="-DCMAKE_APPLE_SILICON_PROCESSOR=x86_64" fi pushd $build_dir >/dev/null if $debug; then folder_name="Debug" "$CMAKE" ../cmake -DCMAKE_BUILD_TYPE=Debug $CMAKE_VARS \ || (popd && rm -r $build_dir && exit 1) else folder_name="Release" "$CMAKE" ../cmake -DCMAKE_BUILD_TYPE=Release $CMAKE_VARS \ || (popd && rm -r $build_dir && exit 1) fi popd >/dev/null pushd $build_dir >/dev/null # final linking of the binaries can fail due to a missing libc++abi library # (happens on Fedora, see https://bugzilla.redhat.com/show_bug.cgi?id=1332306). # So we only build the libraries here for now make -j"$(nproc)" popd >/dev/null mkdir -p AirLib/lib/x64/$folder_name mkdir -p AirLib/deps/rpclib/lib mkdir -p AirLib/deps/MavLinkCom/lib cp $build_dir/output/lib/libAirLib.a AirLib/lib cp $build_dir/output/lib/libMavLinkCom.a AirLib/deps/MavLinkCom/lib cp $build_dir/output/lib/librpc.a AirLib/deps/rpclib/lib/librpc.a # Update AirLib/lib, AirLib/deps, Plugins folders with new binaries rsync -a --delete $build_dir/output/lib/ AirLib/lib/x64/$folder_name rsync -a --delete external/rpclib/$RPC_VERSION_FOLDER/include AirLib/deps/rpclib rsync -a --delete MavLinkCom/include AirLib/deps/MavLinkCom rsync -a --delete AirLib Unreal/Plugins/AirSim/Source rm -rf Unreal/Plugins/AirSim/Source/AirLib/src # Update Blocks project Unreal/Environments/Blocks/clean.sh mkdir -p Unreal/Environments/Blocks/Plugins rsync -a --delete Unreal/Plugins/AirSim Unreal/Environments/Blocks/Plugins set +x echo "" echo "" echo "==================================================================" echo " AirSim plugin is built! Here's how to build Unreal project." echo "==================================================================" echo "If you are using Blocks environment, its already updated." echo "If you are using your own environment, update plugin using," echo "rsync -a --delete Unreal/Plugins path/to/MyUnrealProject" echo "" echo "For help see:" echo "https://github.com/Microsoft/AirSim/blob/master/docs/build_linux.md" echo "==================================================================" popd >/dev/null
#!/bin/bash ########################### TESTING ############################ # For now on Mac: # docker logs -f `docker ps -q --filter name=$SERVICE_NAME` # # For now on Linux: # sudo tail -f /var/log/syslog ################################################################ # $1 == $SERVICE_NAME # $2 == "key" being searched for to know if service is successfully runnning. If found, exit(0) # $3 == timeout - if exceeded, service failed. exit(1) name=$1 match=$2 timeOut=$3 START=$SECONDS ##################################### Check the operating system ######################################### if [ $(uname -s) == "Darwin" ]; then # This is a MAC machine command="docker logs -f `docker ps -q --filter name=$name`" else # This is a LINUX machine command="sudo tail -f /var/log/syslog" fi ####################### Loop until until either MATCH is found or TIMEOUT is exceeded ##################### $command | while read line; do # MATCH was found if grep -q -m 1 "$match" <<< "$line"; then exit 0 # TIMEOUT was exceeded elif [ "$(($SECONDS - $START))" -ge "$timeOut" ]; then exit 1 fi sleep 1; done
import express from 'express'; let pinterestRouter = express.Router(); const router = function (nav) { const pinterestController = require('../controllers/pinterestController')(nav); pinterestRouter.get('/', pinterestController.getPins); pinterestRouter.route('/getPinData').post(pinterestController.getPinData); pinterestRouter.route('/addData').post(pinterestController.addData); pinterestRouter.route('/getNewBoardData').post(pinterestController.getNewBoardData); return pinterestRouter; } module.exports = router;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_border_horizontal_twotone = void 0; var ic_border_horizontal_twotone = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": [] }, { "name": "path", "attribs": { "d": "M11 3h2v2h-2zm8 0h2v2h-2zm0 4h2v2h-2zm-4-4h2v2h-2zM3 19h2v2H3zm0-4h2v2H3zm0-8h2v2H3zm4 12h2v2H7zm4-12h2v2h-2zM7 3h2v2H7zM3 3h2v2H3zm12 16h2v2h-2zm-4 0h2v2h-2zm8-4h2v2h-2zm0 4h2v2h-2zm-8-4h2v2h-2zm-8-4h18v2H3z" }, "children": [] }] }; exports.ic_border_horizontal_twotone = ic_border_horizontal_twotone;
<gh_stars>1000+ import TimelineConverter from '../../src/dash/utils/TimelineConverter'; import SegmentBaseGetter from '../../src/dash/utils/SegmentBaseGetter'; import Constants from '../../src/streaming/constants/Constants'; import VoHelper from './helpers/VOHelper'; const expect = require('chai').expect; function createRepresentationMock() { const voHelper = new VoHelper(); const representation = voHelper.getDummyRepresentation(Constants.VIDEO); representation.segments = []; for (let i = 0; i < 5; i++) { representation.segments.push({ index: i, duration: 5, mediaStartTime: i * 5, presentationStartTime: i * 5, replacementNumber: i + 1, replacementTime: 1001, representation: i * 5 }); } return representation; } describe('SegmentBaseGetter', () => { const context = {}; const timelineConverter = TimelineConverter(context).getInstance(); timelineConverter.initialize(); const segmentBaseGetter = SegmentBaseGetter(context).create({ timelineConverter: timelineConverter }); it('should expose segments getter interface', () => { expect(segmentBaseGetter.getSegmentByIndex).to.exist; // jshint ignore:line expect(segmentBaseGetter.getSegmentByTime).to.exist; // jshint ignore:line }); describe('initialization', () => { it('should throw an error if config object is not defined', function () { const getter = SegmentBaseGetter(context).create(); expect(getter.getSegmentByIndex.bind(getter)).to.be.throw(Constants.MISSING_CONFIG_ERROR); }); it('should throw an error if config object has not been properly passed', function () { const getter = SegmentBaseGetter(context).create({}); expect(getter.getSegmentByIndex.bind(getter)).to.be.throw(Constants.MISSING_CONFIG_ERROR); }); it('should throw an error if representation parameter has not been properly set', function () { const getter = SegmentBaseGetter(context).create({ timelineConverter: timelineConverter }); const segment = getter.getSegmentByIndex(); expect(segment).to.be.null; // jshint ignore:line }); }); describe('getSegmentByIndex', () => { it('should return segment given an index', () => { const representation = createRepresentationMock(); let seg = segmentBaseGetter.getSegmentByIndex(representation, 0); expect(seg.index).to.equal(0); expect(seg.presentationStartTime).to.equal(0); expect(seg.duration).to.equal(5); seg = segmentBaseGetter.getSegmentByIndex(representation, 1); expect(seg.index).to.equal(1); expect(seg.presentationStartTime).to.equal(5); expect(seg.duration).to.equal(5); seg = segmentBaseGetter.getSegmentByIndex(representation, 2); expect(seg.index).to.equal(2); expect(seg.presentationStartTime).to.equal(10); expect(seg.duration).to.equal(5); }); it('should return null if segment is out of range', () => { const representation = createRepresentationMock(); let seg = segmentBaseGetter.getSegmentByIndex(representation, 10); expect(seg).to.be.null; // jshint ignore:line }); }); describe('getSegmentByTime', () => { it('should return segment by time', () => { const representation = createRepresentationMock(); let seg = segmentBaseGetter.getSegmentByTime(representation, 0); expect(seg.index).to.equal(0); expect(seg.presentationStartTime).to.equal(0); expect(seg.duration).to.equal(5); seg = segmentBaseGetter.getSegmentByTime(representation, 6); expect(seg.index).to.equal(0); expect(seg.presentationStartTime).to.equal(0); expect(seg.duration).to.equal(5); seg = segmentBaseGetter.getSegmentByTime(representation, 12); expect(seg.index).to.equal(1); expect(seg.presentationStartTime).to.equal(5); expect(seg.duration).to.equal(5); }); it('should return null if segment is out of range', () => { const representation = createRepresentationMock(); let seg = segmentBaseGetter.getSegmentByTime(representation, 110); expect(seg).to.be.null; // jshint ignore:line }); }); });
<?php $query = 'SELECT name, age FROM employees WHERE department = "Marketing"'; $con = mysqli_connect("localhost", "user", "pass", "database"); $result = mysqli_query($con, $query); $response = []; while ($row = mysqli_fetch_assoc($result)) { $response[] = $row; } echo json_encode($response); ?>
/* **** Notes Refer. */ # define CAR # include <stdlib.h> # include "./../../../incl/config.h" signed char(*__cdecl rf_env(signed char(*argp))) { if(!argp) return(0x00); return(getenv(argp)); }
<gh_stars>10-100 /* * Copyright 2014-present <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.joda.collect.grid; import static org.junit.Assert.assertEquals; import org.junit.Test; /** * Test DenseImmutableGrid. */ public class TestDenseImmutableGrid extends AbstractTestImmutableGrid { @Override protected ImmutableGrid<String> createNonEmpty() { DenseGrid<String> hash = DenseGrid.create(2, 2); hash.put(0, 0, "Hello"); hash.put(0, 1, "World"); return ImmutableGrid.copyOf(hash); } //----------------------------------------------------------------------- @Test public void test_factory_copyOf_Grid_fromDense() { DenseGrid<String> hash = DenseGrid.create(2, 2); hash.put(0, 0, "Hello"); hash.put(1, 0, "World"); ImmutableGrid<String> test = ImmutableGrid.copyOf(hash); assertEquals(2, test.rowCount()); assertEquals(2, test.columnCount()); checkGrid(test, 0, 0, "Hello", 1, 0, "World"); assertEquals("[2x2:(0,0)=Hello, (1,0)=World]", test.toString()); } @Test public void test_factory_copyOf_Grid_fromSparse() { SparseGrid<String> hash = SparseGrid.create(2, 2); hash.put(0, 0, "Hello"); hash.put(0, 1, "World"); ImmutableGrid<String> test = ImmutableGrid.copyOf(hash); assertEquals(2, test.rowCount()); assertEquals(2, test.columnCount()); checkGrid(test, 0, 0, "Hello", 0, 1, "World"); assertEquals("[2x2:(0,0)=Hello, (0,1)=World]", test.toString()); } //----------------------------------------------------------------------- @Test public void test_containsValue_Object() { SparseGrid<String> hash = SparseGrid.create(2, 2); hash.put(0, 0, "Hello"); hash.put(0, 1, "World"); ImmutableGrid<String> test = ImmutableGrid.copyOf(hash); assertEquals(true, test.containsValue("Hello")); assertEquals(true, test.containsValue("World")); assertEquals(false, test.containsValue("Spicy")); assertEquals(false, test.containsValue("")); assertEquals(false, test.containsValue(null)); assertEquals(false, test.containsValue(Integer.valueOf(6))); } @SuppressWarnings("unlikely-arg-type") @Test public void test_equalsHashCode() { SparseGrid<String> hash = SparseGrid.create(2, 2); hash.put(0, 0, "Hello"); hash.put(0, 1, "World"); ImmutableGrid<String> test = ImmutableGrid.copyOf(hash); assertEquals(true, test.equals(test)); assertEquals(true, test.equals(ImmutableGrid.copyOf(hash))); assertEquals(true, test.equals(hash)); assertEquals(false, test.equals(null)); assertEquals(false, test.equals("")); assertEquals(2 ^ Integer.rotateLeft(2, 16) ^ test.cells().hashCode(), test.hashCode()); } }
#!/bin/bash set -o errexit set -o nounset set -o pipefail STARTTIME=$(date +%s) OS_ROOT=$(dirname "${BASH_SOURCE}")/.. source "${OS_ROOT}/hack/lib/init.sh" os::log::stacktrace::install EXAMPLES=examples OUTPUT_PARENT=${OUTPUT_ROOT:-$OS_ROOT} pushd vendor/github.com/jteeuwen/go-bindata > /dev/null go install ./... popd > /dev/null pushd "${OS_ROOT}" > /dev/null "${GOPATH}/bin/go-bindata" -nocompress -nometadata -prefix "bootstrap" -pkg "bootstrap" \ -o "${OUTPUT_PARENT}/pkg/bootstrap/bindata.go" -ignore "README.md" \ ${EXAMPLES}/image-streams/... \ ${EXAMPLES}/db-templates/... \ ${EXAMPLES}/jenkins/pipeline/... \ ${EXAMPLES}/quickstarts/... popd > /dev/null ret=$?; ENDTIME=$(date +%s); echo "$0 took $(($ENDTIME - $STARTTIME)) seconds"; exit "$ret"
/* * -* *- *- *- *- *- *- * * ** -* -* -* - *- *- *-* - ** - *- - * *- */ /* * _ _ +\ */ /* - | |_ ___ ___ ___ ___ ___ ___ ___ _| |___ ___ ___ ___ + */ /* + | _| _| .'| |_ -| _| -_| | . | -_| | _| -_| /* */ /* * |_| |_| |__,|_|_|___|___|___|_|_|___|___|_|_|___|___| + */ /* - ~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~--~ * */ /* * <NAME> | okruitho | Alpha_1337k *- */ /* -* <NAME> | rvan-hou | robijnvh -+ */ /* * / <NAME> | jbennink | JonasDBB /- */ /* / <NAME> | tvan-cit | Tjobo-Hero * */ /* + <NAME> | rbraaksm | rbraaksm - */ /* *. ._ */ /* *. queuescreen.component.ts | Created: 2021-10-06 17:48:04 ._ */ /* - Edited on 2021-10-06 17:48:04 by alpha .- */ /* -* *- *- * -* -* -* ** - *-* -* * / -* -*- * /- - -* --*-*++ * -* * */ import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Subscription } from 'rxjs'; import { QueueService } from '../queue.service'; import { SocketService } from '../socket.service'; interface initdata { gameId: number; userId: number; } @Component({ selector: 'app-queuescreen', templateUrl: './queuescreen.component.html', styleUrls: ['./queuescreen.component.css'] }) export class QueuescreenComponent implements OnInit { queuecount = 0; type: string = ''; constructor(private ws: SocketService, private router: Router, private queueService: QueueService) { } connection: Subscription | undefined; ngOnInit(): void { console.log('hallo'); this.connection = this.ws.create_obs("gameFound").subscribe((initdata: initdata) => { console.log("update!", initdata); this.router.navigate([`/play/pong/${initdata.gameId}/${initdata.userId}`]) this.killqueue(); }); console.log('hallo'); this.connection = this.ws.create_obs("chessGameFound").subscribe((initdata: initdata) => { console.log("update!", initdata); this.router.navigate([`/play/chess/${initdata.gameId}/${initdata.userId}`]) this.killqueue(); }); } ngOnDestroy(): void { console.log('daag'); if (this.type === "pong") this.ws.sendMessage("leaveQueue", ''); else if (this.type === "chess") this.ws.sendMessage("leaveChessQueue", ''); } initCalls(type: string): void { this.type = type; if (type === "pong") this.ws.sendMessage("findGame", ''); else if (type === "chess") this.ws.sendMessage("findChessGame", ''); } killqueue() { this.queueService.conna?.destroy(); } }
screen -S bb sh -c 'gunicorn wsgi:application \ --workers 3 \ --bind unix:bcgs.sock \ --timeout 1200 \ --reload \ --worker-class aiohttp.GunicornWebWorker \ --access-logfile ./logs/access.log \ ; exec bash '
def solve_eight_queens(n): columns = [] for row in range(n): for col in range(n): if check_no_attack(row, col, columns): columns.append(col) break return columns def check_no_attack(row, col, queens): left = right = col for r, c in reversed(list(enumerate(queens))): left, right = left - 1, right + 1 if r == row or c == col or r - c == row - col or r + c == row + col: return False return True
<filename>src/VanillaFormatter.ts /** * @module indicative-formatters */ /* * indicative-formatters * * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { ParsedRule } from 'indicative-parser' import { ErrorFormatterContract } from 'indicative-compiler' /** * Shape of error node */ export type VanillaErrorNode = { message: string, validation: string, field: string, } /** * Vanilla formatter is a plain formatter to collect validation * errors */ export class VanillaFormatter implements ErrorFormatterContract { public errors: VanillaErrorNode[] = [] /** * Adds error to the list of existing errors */ public addError ( error: Error | string, field: string, rule: ParsedRule['name'], ): void { let message = '' let validation = rule if (error instanceof Error) { message = error.message validation = 'ENGINE_EXCEPTION' } else { message = error } this.errors.push({ message, validation, field }) } /** * Returns an array of errors or `null` when there are no * errors */ public toJSON (): VanillaErrorNode[] | null { return this.errors.length ? this.errors : null } }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _marqueeItem = require('./marquee-item'); var _marqueeItem2 = _interopRequireDefault(_marqueeItem); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); require('./index.less'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } var Marquee = _react2.default.createClass({ displayName: 'Marquee', getInitialState: function getInitialState() { this.timer = null; return { currenTranslateY: 0, currentIndex: 0, noAnimate: false, height: 0, count: this.props.children.length }; }, componentDidMount: function componentDidMount() { var _this = this; setTimeout(function () { _this._init(); _this._start(); }, 300); }, _destroy: function _destroy() { this.timer && clearInterval(this.timer); }, _init: function _init() { this._destroy(); var direction = this.props.direction; var oBox = this.refs.box.getDOMNode(); if (this.cloneNode) { oBox.removeChild(this.cloneNode); } this.cloneNode = null; var firstItem = oBox.firstElementChild; if (!firstItem) { return false; } this.height = firstItem.offsetHeight; if (direction === 'up') { this.cloneNode = firstItem.cloneNode(true); oBox.appendChild(this.cloneNode); } else { this.cloneNode = oBox.lastElementChild.cloneNode(true); oBox.insertBefore(this.cloneNode, firstItem); } this.setState({ height: this.height }); return true; }, _start: function _start() { var _this2 = this; var count = this.state.count; var height = this.height; var _props = this.props, direction = _props.direction, duration = _props.duration, interval = _props.interval; var _state = this.state, currentIndex = _state.currentIndex, currenTranslateY = _state.currenTranslateY, noAnimate = _state.noAnimate; this.timer = setInterval(function () { if (currentIndex === count) { setTimeout(function () { currentIndex = 0; currenTranslateY = 0; _this2._go(currentIndex, currenTranslateY, true); }, duration); } else if (currentIndex === -1) { setTimeout(function () { currentIndex = count - 1; currenTranslateY = -(currentIndex + 1) * height; _this2._go(currentIndex, currenTranslateY, false); }, duration); } else { if (direction === 'up') { currentIndex += 1; currenTranslateY = -currentIndex * height; } else { currentIndex -= 1; currenTranslateY = -(currentIndex + 1) * height; } _this2._go(currentIndex, currenTranslateY, false); } }, interval + duration); }, _go: function _go(currentIndex, currenTranslateY, noAnimate) { this.setState({ currentIndex: currentIndex, currenTranslateY: currenTranslateY, noAnimate: noAnimate }); }, refresh: function refresh() { var _this3 = this; this._destroy(); this.setState({ count: this.props.children.length }, function () { setTimeout(function () { _this3._init(); _this3._start(); }, 300); }); }, componentWillUnmount: function componentWillUnmount() { this._destroy(); }, render: function render() { var _state2 = this.state, noAnimate = _state2.noAnimate, currenTranslateY = _state2.currenTranslateY, height = _state2.height; var _props2 = this.props, duration = _props2.duration, children = _props2.children, className = _props2.className, others = _objectWithoutProperties(_props2, ['duration', 'children', 'className']); var styWrap = { height: height + 'px' }; var styUl = { transform: 'translate3d(0,' + currenTranslateY + 'px,0)', transition: 'transform ' + (noAnimate ? 0 : duration) + 'ms' }; var cls = (0, _classnames2.default)('mt-marquee', _defineProperty({}, className, className)); return _react2.default.createElement( 'div', _extends({ className: cls, style: styWrap }, others), _react2.default.createElement( 'ul', { className: 'mt-marquee-box', ref: 'box', style: styUl }, children ) ); } }); Marquee.MarqueeItem = _marqueeItem2.default; Marquee.propTypes = { interval: _react2.default.PropTypes.number, duration: _react2.default.PropTypes.number, direction: _react2.default.PropTypes.string }; Marquee.defaultProps = { interval: 2000, duration: 300, direction: 'up' }; exports.default = Marquee;
#!/usr/bin/env bash # Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" && pwd )" . "$ROOT_DIR/utils.sh" usage() { echo "Classification demo using public SqueezeNet topology" echo "-d name specify the target device to infer on; CPU, GPU, FPGA, HDDL or MYRIAD are acceptable. Sample will look for a suitable plugin for device specified" echo "-help print help message" exit 1 } trap 'error ${LINENO}' ERR target="CPU" # parse command line options while [[ $# -gt 0 ]] do key="$1" case $key in -h | -help | --help) usage ;; -d) target="$2" echo target = "${target}" shift ;; -sample-options) sampleoptions="$2 $3 $4 $5 $6" echo sample-options = "${sampleoptions}" shift ;; *) # unknown option ;; esac shift done target_precision="FP16" printf "target_precision = %s\n" "${target_precision}" models_path="$HOME/openvino_models/models" models_cache="$HOME/openvino_models/cache" irs_path="$HOME/openvino_models/ir" model_name="squeezenet1.1" target_image_path="$ROOT_DIR/car.png" run_again="Then run the script again\n\n" dashes="\n\n###################################################\n\n" if [ -e "$ROOT_DIR/../../bin/setupvars.sh" ]; then setupvars_path="$ROOT_DIR/../../bin/setupvars.sh" else printf "Error: setupvars.sh is not found\n" fi if ! . "$setupvars_path" ; then printf "Unable to run ./setupvars.sh. Please check its presence. %s" "${run_again}" exit 1 fi # Step 1. Download the Caffe model and the prototxt of the model printf "%s" "${dashes}" printf "\n\nDownloading the Caffe model and the prototxt" cur_path=$PWD printf "\nInstalling dependencies\n" if [[ -f /etc/centos-release ]]; then DISTRO="centos" elif [[ -f /etc/lsb-release ]]; then DISTRO="ubuntu" fi if [[ $DISTRO == "centos" ]]; then sudo -E yum install -y centos-release-scl epel-release sudo -E yum install -y gcc gcc-c++ make glibc-static glibc-devel libstdc++-static libstdc++-devel libstdc++ libgcc \ glibc-static.i686 glibc-devel.i686 libstdc++-static.i686 libstdc++.i686 libgcc.i686 cmake sudo -E rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm || true sudo -E yum install -y epel-release sudo -E yum install -y cmake ffmpeg gstreamer1 gstreamer1-plugins-base libusbx-devel # check installed Python version if command -v python3.5 >/dev/null 2>&1; then python_binary=python3.5 pip_binary=pip3.5 fi if command -v python3.6 >/dev/null 2>&1; then python_binary=python3.6 pip_binary=pip3.6 fi if [ -z "$python_binary" ]; then sudo -E yum install -y rh-python36 || true . scl_source enable rh-python36 python_binary=python3.6 pip_binary=pip3.6 fi elif [[ $DISTRO == "ubuntu" ]]; then sudo -E apt update print_and_run sudo -E apt -y install build-essential python3-pip virtualenv cmake libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libswscale-dev libavcodec-dev libavformat-dev libgstreamer1.0-0 gstreamer1.0-plugins-base python_binary=python3 pip_binary=pip3 system_ver=$(grep -i "DISTRIB_RELEASE" -f /etc/lsb-release | cut -d "=" -f2) if [ "$system_ver" = "16.04" ]; then sudo -E apt-get install -y libpng12-dev else sudo -E apt-get install -y libpng-dev fi elif [[ "$OSTYPE" == "darwin"* ]]; then # check installed Python version if command -v python3.7 >/dev/null 2>&1; then python_binary=python3.7 pip_binary=pip3.7 elif command -v python3.6 >/dev/null 2>&1; then python_binary=python3.6 pip_binary=pip3.6 elif command -v python3.5 >/dev/null 2>&1; then python_binary=python3.5 pip_binary=pip3.5 else python_binary=python3 pip_binary=pip3 fi fi if ! command -v $python_binary &>/dev/null; then printf "\n\nPython 3.5 (x64) or higher is not installed. It is required to run Model Optimizer, please install it. %s" "${run_again}" exit 1 fi if [[ "$OSTYPE" == "darwin"* ]]; then "$pip_binary" install -r "$ROOT_DIR/../open_model_zoo/tools/downloader/requirements.in" else sudo -E "$pip_binary" install -r "$ROOT_DIR/../open_model_zoo/tools/downloader/requirements.in" fi downloader_dir="${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader" model_dir=$("$python_binary" "$downloader_dir/info_dumper.py" --name "$model_name" | "$python_binary" -c 'import sys, json; print(json.load(sys.stdin)[0]["subdirectory"])') downloader_path="$downloader_dir/downloader.py" print_and_run "$python_binary" "$downloader_path" --name "$model_name" --output_dir "${models_path}" --cache_dir "${models_cache}" ir_dir="${irs_path}/${model_dir}/${target_precision}" if [ ! -e "$ir_dir" ]; then # Step 2. Configure Model Optimizer printf "%s" "${dashes}" printf "Install Model Optimizer dependencies\n\n" cd "${INTEL_OPENVINO_DIR}/deployment_tools/model_optimizer/install_prerequisites" . ./install_prerequisites.sh caffe cd "$cur_path" # Step 3. Convert a model with Model Optimizer printf "%s" "${dashes}" printf "Convert a model with Model Optimizer\n\n" mo_path="${INTEL_OPENVINO_DIR}/deployment_tools/model_optimizer/mo.py" export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp print_and_run "$python_binary" "$downloader_dir/converter.py" --mo "$mo_path" --name "$model_name" -d "$models_path" -o "$irs_path" --precisions "$target_precision" else printf "\n\nTarget folder %s already exists. Skipping IR generation with Model Optimizer." "${ir_dir}" printf "If you want to convert a model again, remove the entire %s folder. %s" "${ir_dir}" "${run_again}" fi # Step 4. Build samples printf "%s" "${dashes}" printf "Build Inference Engine samples\n\n" OS_PATH=$(uname -m) NUM_THREADS="-j2" if [ "$OS_PATH" == "x86_64" ]; then OS_PATH="intel64" NUM_THREADS="-j8" fi samples_path="${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/samples/cpp" build_dir="$HOME/inference_engine_samples_build" binaries_dir="${build_dir}/${OS_PATH}/Release" if [ -e "$build_dir/CMakeCache.txt" ]; then rm -rf "$build_dir/CMakeCache.txt" fi mkdir -p "$build_dir" cd "$build_dir" cmake -DCMAKE_BUILD_TYPE=Release "$samples_path" make $NUM_THREADS classification_sample_async # Step 5. Run samples printf "%s" "${dashes}" printf "Run Inference Engine classification sample\n\n" cd "$binaries_dir" cp -f "$ROOT_DIR/${model_name}.labels" "${ir_dir}/" print_and_run ./classification_sample_async -d "$target" -i "$target_image_path" -m "${ir_dir}/${model_name}.xml" "${sampleoptions}" printf "%s" "${dashes}" printf "Demo completed successfully.\n\n"
#!/usr/bin/env sh # # No Requires for f in /etc/profile.d/*; do source $f; done DEFAULT_CONDA_USER=${OCI_USER:-jovyan} DEFAULT_CONDA_DIR=/opt/conda DEFAULT_MINICONDA_VERSION='4.3.30' BUILD_CONDA_USER=${DEFAULT_CONDA_USER} BUILD_CONDA_DIR=${DEFAULT_CONDA_DIR} BUILD_MINICONDA_VERSION=${DEFAULT_MINICONDA_VERSION} BUILD_CONDA_MD5_CHECKSUM="0b80a152332a4ce5250f3c09589c7a81" PATH="$BUILD_CONDA_DIR/bin:$PATH" echo "export PATH=${BUILD_CONDA_DIR}/bin:\$PATH" > /etc/profile.d/conda3.sh echo "export CONDA_DIR=${BUILD_CONDA_DIR}" >> /etc/profile.d/conda3.sh echo "export MINICONDA_VERSION=${BUILD_MINICONDA_VERSION}" >> /etc/profile.d/conda3.sh # # Load required env variables is case we are building # in the same shell session # for f in /etc/profile.d/*; do source $f; done cd /tmp apk add --no-cache --virtual=.build-dependencies ca-certificates bash wget --quiet "https://repo.continuum.io/miniconda/Miniconda3-${BUILD_MINICONDA_VERSION}-Linux-x86_64.sh" \ -O miniconda.sh echo "${BUILD_CONDA_MD5_CHECKSUM} miniconda.sh" | md5sum -c - mkdir -p ${BUILD_CONDA_DIR} bash miniconda.sh -f -b -p ${BUILD_CONDA_DIR} rm miniconda.sh ${BUILD_CONDA_DIR}/bin/conda config --system --prepend channels conda-forge ${BUILD_CONDA_DIR}/bin/conda config --system --set auto_update_conda false ${BUILD_CONDA_DIR}/bin/conda config --system --set show_channel_urls true ${BUILD_CONDA_DIR}/bin/conda update --all --quiet --yes ${BUILD_CONDA_DIR}/bin/conda clean -tipsy mkdir -p "${BUILD_CONDA_DIR}/locks" chmod 777 "${BUILD_CONDA_DIR}/locks" # # Cleanup # rm -f "/root/.wget-hsts" # Remove bash history unset HISTFILE rm -f /root/.bash_history
#!/bin/sh cd ~ git clone -b monolith https://github.com/express42/reddit.git cd reddit && bundle install puma -d
// Define a struct to represent the dataset struct Dataset { data: Vec<Vec<f64>>, } impl Dataset { // Create a copy of the dataset fn create_copy(&self, driver: &Driver, name: &str) -> Result<Dataset, Error> { // Implement the logic to create a copy of the dataset // This can involve deep copying the data array // Return the copied dataset or an error if the operation fails } // Apply a geometric transformation to the dataset fn geo_transform(&self, transform: [f64; 6]) -> Dataset { // Implement the logic to apply the geometric transformation to the dataset // This can involve matrix multiplication with the transformation matrix // Return the transformed dataset } // Get the size of the dataset fn size(&self) -> (usize, usize) { // Implement the logic to return the size of the dataset // Return the size as a tuple (rows, columns) } // Get the count of data points in the dataset fn count(&self) -> usize { // Implement the logic to return the count of data points in the dataset // Return the count } } // Define a driver struct for creating datasets struct Driver { // Implement the logic for creating datasets // This can involve creating a new dataset with the specified dimensions } impl Driver { // Get a driver instance for creating datasets fn get(driver_type: &str) -> Result<Driver, Error> { // Implement the logic to get a driver instance based on the driver type // Return the driver instance or an error if the operation fails } // Create a new dataset fn create(&self, name: &str, rows: usize, cols: usize, initial_value: f64) -> Result<Dataset, Error> { // Implement the logic to create a new dataset with the specified dimensions and initial values // Return the created dataset or an error if the operation fails } } #[test] fn test_geo_transform() { let driver = Driver::get("MEM").unwrap(); let dataset = driver.create("", 20, 10, 1.0).unwrap(); let transform = [0.0, 1.0, 0.0, 0.0, 0.0, 1.0]; let transformed_dataset = dataset.geo_transform(transform); // Add assertions to validate the transformation assert_eq!(transformed_dataset.size(), (20, 10)); assert_eq!(transformed_dataset.count(), 3); }
import { ResourceType } from "../Constants/ResourcePicker" export const getQuickId = (resourceType = "", resource) => { switch (resourceType) { case ResourceType.Gateway: case ResourceType.Task: case ResourceType.Schedule: case ResourceType.Handler: case ResourceType.DataRepository: return `${resourceType}.${resource.id}` case ResourceType.Node: return `${resourceType}.${resource.gatewayId}.${resource.nodeId}` case ResourceType.Source: return `${resourceType}.${resource.gatewayId}.${resource.nodeId}.${resource.sourceId}` case ResourceType.Field: return `${resourceType}.${resource.gatewayId}.${resource.nodeId}.${resource.sourceId}.${resource.fieldId}` default: return `unknown resource type. ${resourceType}` } }
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import querystring from 'querystring'; import ReactSwipe from '../src/reactSwipe'; import './index.css'; const query = querystring.parse(window.location.search.slice(1)); // generate slide panes const numberOfSlides = parseInt(query.slidesNum, 10) || 20; const paneNodes = Array.apply(null, Array(numberOfSlides)).map((_, i) => { return ( <div className="itemWrap" key={i} onClick={()=>{console.log('hahahahha', i);}}> <div className="item">{i}</div> </div> ); }); // change Swipe.js options by query params const startSlide = parseInt(query.startSlide, 10) || 0; const swipeOptions = { startSlide: startSlide < paneNodes.length && startSlide >= 0 ? startSlide : 0, auto: parseInt(query.auto, 10) || 0, margin: parseInt(query.margin, 10) || 0, degree: parseInt(query.degree, 10) || 0, speed: parseInt(query.speed, 10) || 2000, touchSpeed: parseInt(query.touchSpeed, 10) || 300, disableScroll: query.disableScroll === 'true', stopPropagation: query.stopPropagation === 'true', continuous: query.continuous === 'true', callback(cur, curDom) { console.log('slide changed', cur, curDom); }, transitionEnd() { console.log('ended transition'); } }; class Page extends Component { next() { this.refs.reactSwipe.next(); } prev() { this.refs.reactSwipe.prev(); } render() { return ( <div className="center"> <h1>ReactSwipe.js</h1> <h2>Open this page from a mobile device (real or emulated).</h2> <h2>You can pass <a href="https://github.com/voronianski/swipe-js-iso#config-options">Swipe.js options</a> as query params.</h2> <ReactSwipe ref="reactSwipe" className="mySwipe" swipeOptions={swipeOptions}> {paneNodes} </ReactSwipe> <div> <button type="button" onClick={()=>{this.prev()}}>Prev</button> <button type="button" onClick={()=>{this.next()}}>Next</button> </div> </div> ); } } ReactDOM.render( <Page />, document.getElementById('app') );
<filename>magic-tumb-wechat-intf/src/main/java/com/iamdigger/magictumblr/wcintf/exception/MagicException.java package com.iamdigger.magictumblr.wcintf.exception; import lombok.Getter; /** * @author Sam * @since 3.0.0 */ @Getter public class MagicException extends RuntimeException { private String errorMsg; public MagicException(String errorMsg) { super(errorMsg); this.errorMsg = errorMsg; } }
<filename>node_modules/react-icons-kit/icomoon/stumbleupon.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stumbleupon = void 0; var stumbleupon = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill": "#000000", "d": "M8 5c-0.55 0-1 0.45-1 1v4c0 1.653-1.347 3-3 3s-3-1.347-3-3v-2h2v2c0 0.55 0.45 1 1 1s1-0.45 1-1v-4c0-1.653 1.347-3 3-3s3 1.347 3 2.781v0.969l-1.281 0.375-0.719-0.375v-0.969c0-0.331-0.45-0.781-1-0.781z" } }, { "name": "path", "attribs": { "fill": "#000000", "d": "M15 10c0 1.653-1.347 3-3 3s-3-1.347-3-3.219v-1.938l0.719 0.375 1.281-0.375v1.938c0 0.769 0.45 1.219 1 1.219s1-0.45 1-1v-2h2v2z" } }] }; exports.stumbleupon = stumbleupon;
class Node: def __init__(self, value): self.value = value self.left = None self.right = None def dfs(root): if root == None: return print(root.value) dfs(root.left) dfs(root.right)
<reponame>FadeDemo/spring-framework package org.fade.demo.springframework.beans; import org.springframework.beans.factory.xml.NamespaceHandlerSupport; /** * @author fade * @date 2022/01/24 */ public class CustomElementNamespaceHandler extends NamespaceHandlerSupport { @Override public void init() { CustomElementBeanDefinitionParser customElementBeanDefinitionParser = new CustomElementBeanDefinitionParser(); registerBeanDefinitionParser("custom-element", customElementBeanDefinitionParser); } }
<reponame>GABA2020/product jQuery.noConflict(); (function ($) { $.GSET = {}; //Breakpoint (MediaQuery) settings $.GSET.MODEL = { //Breakpoint name (used to move elements, etc.): MediaQuery value pc: '(min-width: 1241px)', tb: 'only screen and (min-width : 640px) and (max-width : 1240px)', sp: 'only screen and (max-width : 640px)', }; //Element movement settings $.GSET.MOVE_ELEM = [ { elem: '.navigation', pc: ['.logo', 'after'], tb: ['#sma-cnavi', 'append'], sp: ['#sma-cnavi', 'append'], }, ]; //PC / smartphone switching settings $.GSET.MODEL_CHANGE_BASE_MODEL = 'pc'; // Breakpoint name on PC display $.GSET.MODEL_CHANGE_SP_MODEL = 'sp'; // Breakpoint name on smartphone display })(jQuery); window.matchMedia || (window.matchMedia = (function () { 'use strict'; // For browsers that support matchMedium api such as IE 9 and webkit var styleMedia = window.styleMedia || window.media; // For those that don't support matchMedium if (!styleMedia) { var style = document.createElement('style'), script = document.getElementsByTagName('script')[0], info = null; style.type = 'text/css'; style.id = 'matchmediajs-test'; if (!script) { document.head.appendChild(style); } else { script.parentNode.insertBefore(style, script); } // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers info = ('getComputedStyle' in window && window.getComputedStyle(style, null)) || style.currentStyle; styleMedia = { matchMedium: function (media) { var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }'; // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers if (style.styleSheet) { style.styleSheet.cssText = text; } else { style.textContent = text; } // Test if media query is true or false return info.width === '1px'; }, }; } return function (media) { return { matches: styleMedia.matchMedium(media || 'all'), media: media || 'all', }; }; })()); (function () { // Bail out for browsers that have addListener support if (window.matchMedia && window.matchMedia('all').addListener) { return false; } var localMatchMedia = window.matchMedia, hasMediaQueries = localMatchMedia('only all').matches, isListening = false, timeoutID = 0, // setTimeout for debouncing 'handleChange' queries = [], // Contains each 'mql' and associated 'listeners' if 'addListener' is used handleChange = function (evt) { // Debounce clearTimeout(timeoutID); timeoutID = setTimeout(function () { for (var i = 0, il = queries.length; i < il; i++) { var mql = queries[i].mql, listeners = queries[i].listeners || [], matches = localMatchMedia(mql.media).matches; // Update mql.matches value and call listeners // Fire listeners only if transitioning to or from matched state if (matches !== mql.matches) { mql.matches = matches; for (var j = 0, jl = listeners.length; j < jl; j++) { listeners[j].call(window, mql); } } } }, 30); }; window.matchMedia = function (media) { var mql = localMatchMedia(media), listeners = [], index = 0; mql.addListener = function (listener) { // Changes would not occur to css media type so return now (Affects IE <= 8) if (!hasMediaQueries) { return; } // Set up 'resize' listener for browsers that support CSS3 media queries (Not for IE <= 8) // There should only ever be 1 resize listener running for performance if (!isListening) { isListening = true; window.addEventListener('resize', handleChange, true); } // Push object only if it has not been pushed already if (index === 0) { index = queries.push({ mql: mql, listeners: listeners, }); } listeners.push(listener); }; mql.removeListener = function (listener) { for (var i = 0, il = listeners.length; i < il; i++) { if (listeners[i] === listener) { listeners.splice(i, 1); } } }; return mql; }; })(); //関数定義 ※実行する処理をこのファイルに記述しない (function ($) { $.DEVFUNC = {}; //======================================== //▼Accordion //======================================== $.DEVFUNC.accordion = function (options) { var defaults = { wrap: $('.accordion'), item: $('.accordion-item'), target: '.accordion-title', contents: $('.accordion-content'), contentStr: '.accordion-content', hasClassSub: 'accordion-content', }, s = $.extend(defaults, options); //Private Function function toggleSlide() { s.wrap.each(function () { $(this).children('.active').children(s.contentStr).slideDown(450); $(this).children('.active').addClass('active'); }); s.wrap.on('click', s.target, function (e) { if ($(this).next().hasClass(s.hasClassSub) == false) { return; } var parent = $(this).parent().parent(); var subAccordion = $(this).next(); parent.children('.active').children(s.contentStr).slideUp(450); parent.children('.active').removeClass('active'); if (subAccordion.is(':visible')) { $(this).parent().removeClass('active'); subAccordion.slideUp(450); } else { $(this).parent().addClass('active'); subAccordion.slideDown(450); } e.preventDefault(); }); } //Public Fuction return { handleAccordion: function () { toggleSlide(); }, }; }; //======================================== //▼ Smartphone menu //======================================== $.DEVFUNC.spMenu = function (options) { var o = $.extend( { menuBtn: [ { oBtn: '#btn-nav-sp a', //menu button target: '#smartphone-menu', //Menu to expand }, ], closeBtn: '.close_btn', //Close button addClass: 'spmenu_open', //Class to be given to body //callBack: function() {} }, options, ); var l = o.menuBtn.length; if (l >= 0) { for (i = 0; i < l; i++) { $(o.menuBtn[i].oBtn).on( 'click', { elem: o.menuBtn[i].target }, function (e) { var self = $(this); if (self.hasClass('active')) { self.removeClass('active'); $(e.data.elem).hide(); $('body').removeClass(o.addClass); } else { for (var i = 0; i < o.menuBtn.length; i++) { if ($(o.menuBtn[i].oBtn).hasClass('active')) $(o.menuBtn[i].oBtn).removeClass('active'); $(o.menuBtn[i].target).hide(); } self.addClass('active'); $(e.data.elem).show(); if (o.addClass) $('body').addClass(o.addClass); } }, ); $(o.menuBtn[i].target).on( 'click', o.closeBtn, { elem: o.menuBtn[i] }, function (ev) { $(ev.data.elem.oBtn).removeClass('active'); $(ev.data.elem.target).hide(); $('body').removeClass(o.addClass); }, ); // Processing to close the menu when tapping outside the screen $(document).on('click touchstart', { elem: o.menuBtn[i] }, function ( e, ) { //Close if tapped element's parent is html element if ($(e.target).parent().is($('html'))) { $(o.menuBtn).each(function () { if ($(this.oBtn).hasClass('active')) { $(this.oBtn).removeClass('active'); } }); $('body').removeClass(o.addClass); $(e.data.elem.target).hide(); } }); } } }; //======================================== //▼ Move element //======================================== $.DEVFUNC.elemMove = function (option, model) { var option = $.GSET.MOVE_ELEM; if (!option || option.length <= 0) return false; //要素移動の設定が無い、もしくは移動の要素が無い場合に中断 var eLength = option.length; for (i = 0; i < eLength; i++) { if ( typeof option[i].flg === 'undefined' || option[i].flg || option[i][model] || $(option[i].elem).length ) { switch (option[i][model][1]) { case 'append': $(option[i][model][0]).append($(option[i].elem)); break; case 'prepend': $(option[i][model][0]).prepend($(option[i].elem)); break; case 'after': $(option[i][model][0]).after($(option[i].elem)); break; case 'before': $(option[i][model][0]).before($(option[i].elem)); break; } } } }; //======================================== //▼ MatchMedia //======================================== var mql = Array(); $.DEVFUNC.MATCHMEDIA = function () { for (model in $.GSET.MODEL) { var mediaQuery = matchMedia($.GSET.MODEL[model]); var mc = localStorage.getItem('pc'); // ページが読み込まれた時に実行 handle(mediaQuery); // ウィンドウサイズが変更されても実行されるように mediaQuery.addListener(handle); function handle(mq) { if (!mc) { for (model in $.GSET.MODEL) { if (mql[model].matches && !$('body').hasClass('model_' + model)) { $('body').addClass('model_' + model); $.HANDLEBREAKPOINT(model); } if (!mql[model].matches && $('body').hasClass('model_' + model)) { $('body').removeClass('model_' + model); } } } else if (mc) { for (model in $.GSET.MODEL) { $('body').removeClass('model_' + model); } model = 'pc'; $('body').addClass('model_' + $.GSET.MODEL_CHANGE_SP_MODEL); $.HANDLEBREAKPOINT($.GSET.MODEL_CHANGE_BASE_MODEL); } } } }; for (model in $.GSET.MODEL) { var mc = localStorage.getItem('pc'); if (mc) { mql[model] = 'pc'; } else { mql[model] = matchMedia($.GSET.MODEL[model]); } } })(jQuery);
<reponame>matthew-coffman/tailwind-collector-hub interface Props { /** * Component's HTML Element * * @default 'div' */ component?: string; /** * Object with Tailwind CSS colors classes * */ colors?: { /** * Toolbar bg color in iOS theme * * @default 'bg-bars-ios-light dark:bg-bars-ios-dark' */ bgIos?: string; /** * Toolbar bg color in iOS theme * * @default 'bg-bars-material-light dark:bg-bars-material-dark' */ bgMaterial?: string; }; /** * Makes Toolbar background translucent (with `backdrop-filter: blur`) in iOS theme * * @default true */ translucent?: boolean; /** * Additional class to add on Toolbar's "background" element */ bgClassName?: string; /** * Additional class to add on Toolbar's "inner" element */ innerClassName?: string; /** * Renders outer hairlines (borders) on iOS theme * * @default true */ hairlines?: boolean; /** * Enables tabbar, same as using `<Tabbar>` component * * @default false */ tabbar?: boolean; /** * Enables tabbar with labels, same as using `<Tabbar labels>` component * * @default false */ tabbarLabels?: boolean; /** * Enables top toolbar, in this case it renders border on shadows on opposite sides * * @default false */ top?: boolean; }
from pathlib import Path from setuptools import setup _HERE = Path(__file__).resolve().parent PROJECT_NAME = 'file_groups' COPYRIGHT = u"Copyright (c) 2018 - 2020 <NAME>, Hupfeldt IT" PROJECT_AUTHORS = u"<NAME>" PROJECT_EMAILS = '<EMAIL>' PROJECT_URL = "https://github.com/lhupfeldt/file_groups" SHORT_DESCRIPTION = "Group files into 'protect' and 'work_on' and provide operations for safe delete/move and symlink handling." LONG_DESCRIPTION = open(_HERE/"README.rst").read() with open(_HERE/'requirements.txt') as ff: install_requires = [req.strip() for req in ff.readlines() if req.strip() and req.strip()[0] != "#"] if __name__ == "__main__": setup( name=PROJECT_NAME.lower(), version_command=('git describe', 'pep440-git'), author=PROJECT_AUTHORS, author_email=PROJECT_EMAILS, packages=['file_groups'], package_dir={'file_groups': 'src'}, zip_safe=False, include_package_data=True, package_data={"file_groups": ["py.typed"]}, python_requires='>=3.7', install_requires=install_requires, setup_requires='setuptools-version-command~=2.2', url=PROJECT_URL, description=SHORT_DESCRIPTION, long_description=LONG_DESCRIPTION, long_description_content_type='text/x-rst', license='BSD', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Topic :: Software Development :: Libraries', ], )
#!/bin/bash clean_pyc () { echo 'cleaning .pyc files'; find . -name "*.pyc" -exec rm -f {} \; ; } trap clean_pyc EXIT echo '' echo '#######################################################################' echo '# Running nosetests #' echo '#######################################################################' xvfb-run nosetests $PROJECT_DIR TEST_STATUS=$? if [[ ("$TEST_STATUS" == 0) ]]; then echo '#######################################################################' echo '# nosetests succeded #' echo '#######################################################################' exit 0 else echo '' echo '#######################################################################' echo '# nosetests failed ! #' echo '#######################################################################' exit 1 fi
package com.example.demo.api; import com.example.demo.po.User; import org.springframework.stereotype.Service; import java.util.List; /** * @author yuanxin * @create 2020/11/11 11:25 */ @Service("UserService") public interface UserService { /** * 通过Uid获得User.UserName * * @param uid 用户的Uid * @return UserName */ String getUserNameByUid(int uid); /** * 查询表内全部User * * @return ListUser */ List<User> findAll(); /** * 通过Uid获取一个User * * @param uid 用户的uid * @return User */ User getUserByUserUid(long uid); /** * 通过Uid删除一个User * * @param uid 用户的Uid * @return result, 若成功返回1, 反之为0 */ long deleteOneByUid(long uid); /** * 更新User * * @param user 单个user * @return result, 若成功返回1,反正为0 */ long updateUserByUid(User user); /** * 插入新User * * @param user 插入的用户 * @return result, 若成功返回1, 反正为0 */ long insertNewUser(User user); /** * 插入多个User * * @param list 多个User * @return result, 返回结果是成功插入的条数 */ long insertMultiUsers(List<User> list); /** * 通过Uid删除多个User * * @param list 多个User * @return result, 返回结果是成功插入的条数 */ long deleteMultiUsersByUid(List<Long> list); /** * 更新多个User * * @param list 多个User * @return result,返回结果是成功插入的条数 */ long updateMultiUser(List<User> list); /** * 分页查询的功能 * * @param start 从第几条开始读取 * @param pageSize 一页有多少 * @return User, 返回查询到的User */ List<User> getAllUerWithLimits(long start, long pageSize); /** * 查询表内有多少条记录 * * @param tableName 表名 * @return 结果 */ long countTableRows(String tableName); User getUserByUserName(String userName); }
package main import "fmt" func factorial(n int) int { if n == 0 || n == 1 { return 1 } return n * factorial(n-1) } func main() { fmt.Println(factorial(5)) }
<reponame>lananh265/social-network "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cloud = void 0; var cloud = { "viewBox": "0 0 20 20", "children": [{ "name": "path", "attribs": { "d": "M20,11.32c0,2.584-2.144,4.68-4.787,4.68H3.617C1.619,16,0,14.416,0,12.463c0-1.951,1.619-3.535,3.617-3.535\r\n\tc0.146,0,0.288,0.012,0.429,0.027C4.009,8.709,3.989,8.457,3.989,8.199C3.989,5.328,6.37,3,9.309,3c2.407,0,4.439,1.562,5.096,3.707\r\n\tc0.263-0.043,0.532-0.066,0.809-0.066C17.856,6.641,20,8.734,20,11.32z" } }] }; exports.cloud = cloud;
<gh_stars>1-10 from django.urls import path,re_path from django.contrib import admin from .views import login, article, comment urlpatterns = [ path('login/', login.LoginView.as_view()), # 登录 path('sign/', login.SignView.as_view()), # 注册 path('article/', article.ArticleView.as_view()), # 添加文章 re_path('article/(?P<nid>\d+)/', article.ArticleView.as_view()), # 编辑文章 re_path('article/comment/(?P<nid>\d+)/', comment.CommentView.as_view()), # 发布评论 re_path('comment/digg/(?P<nid>\d+)/', comment.CommentDiggView.as_view()), # 评论点赞 re_path('article/digg/(?P<nid>\d+)/', article.ArticleDiggView.as_view()), # 文章点赞 re_path('article/collects/(?P<nid>\d+)/', article.ArticleCollectView.as_view()), # 文章收藏 ]
import random random_num = random.randint(1, 10) print(random_num)
#!/bin/bash version=$(node -p "require('./package.json').version") rm -Rf dist mkdir dist if [[ -f allure-commandline.tgz ]]; then rm allure-commandline.tgz fi wget --output-document allure-commandline.tgz https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/$version/allure-commandline-$version.tgz tar -xf allure-commandline.tgz --strip-components=1 --directory dist
<reponame>dburestmb/rxp-android package com.realexpayments.remote; import android.app.Application; import android.test.ApplicationTestCase; import android.test.suitebuilder.annotation.SmallTest; public class ValidateAmexCvnTest extends ApplicationTestCase<Application> { public ValidateAmexCvnTest() { super(Application.class); } @SmallTest public void testValidAmexCVN() { assertTrue(RealexRemote.validateAmexCvn("1234")); } @SmallTest public void testEmptyCVN() { assertFalse(RealexRemote.validateAmexCvn("")); } @SmallTest public void testUndefinedCVN() { assertFalse(RealexRemote.validateAmexCvn(null)); } @SmallTest public void testWhiteSpaceOnly() { assertFalse(RealexRemote.validateAmexCvn(" ")); } @SmallTest public void testAmexCVNof5Numbers() { assertFalse(RealexRemote.validateAmexCvn("12345")); } @SmallTest public void testAmexCVNof3Numbers() { assertFalse(RealexRemote.validateAmexCvn("123")); } @SmallTest public void testNonNumericAmexCVNof4Characters() { assertFalse(RealexRemote.validateAmexCvn("123a")); } }
package com.wing.spring.EalyAopDemo; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; /*** * @Author 徐庶 QQ:1092002729 * @Slogan 致敬大师,致敬未来的你 */ public class TulingLogInterceptor implements MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { System.out.println(getClass()+"调用方法前"); Object ret=invocation.proceed(); System.out.println(getClass()+"调用方法后"); return ret; } }
<gh_stars>0 package com.nortal.spring.cw.core.web.component.single.editor; import java.beans.PropertyEditorSupport; import java.math.BigDecimal; import java.text.NumberFormat; import org.apache.commons.lang3.StringUtils; import com.nortal.spring.cw.core.exception.AppBaseRuntimeException; /** * Tegemist on klassiga, mis tegeleb vormilt saadetud reaalarvu konvertimisega stringist objektiks ning väärtuse kuvamisel objektist * tekstiliseks väärtuseks. Tekstilise väärtuse konvertimisel on kasutusel {@link NumberFormat#getNumberInstance()}, mis kasutab tekstilise * väärtuse konvertimisel regionaalseid seadeid. Konvertimise lõplikuks tulemuseks on {@link BigDecimal} * * @author <NAME> * */ public class BigDecimalEditor extends PropertyEditorSupport { /** * Tulemus lisatakse konkreetse vormi elemendi väärtuseks * * @param text * Konverditav tekstiline väärtus */ @Override public void setAsText(String text) throws IllegalArgumentException { if (StringUtils.isEmpty(text)) { setValue(null); return; } try { setValue(new BigDecimal(StringUtils.replace(StringUtils.replace(text, ",", "."), " ", ""))); } catch (Exception e) { throw new AppBaseRuntimeException(e); } } /** * Meetod tagastab objekti väärtuse tekstilisel kujul */ @Override public String getAsText() { if (getValue() == null) { return StringUtils.EMPTY; } return StringUtils.replace(((BigDecimal) getValue()).toPlainString(), ".", ","); } }
package server import ( myApi "rickonono3/r-blog/server/api" myApiAdmin "rickonono3/r-blog/server/api/admin" myMiddleware "rickonono3/r-blog/server/middleware" ) // RouteApi // 无视图渲染需求的(主要是返回json的)请求在此注册: // - /api/login // - /api/logout // - /api/myApiAdmin/new // - /api/myApiAdmin/newResource // - /api/myApiAdmin/edit // - /api/myApiAdmin/remove // - /api/myApiAdmin/move // - /api/myApiAdmin/settings/save // - /api/myApiAdmin/settings/reset // - /api/myApiAdmin/restart func RouteApi() { // 注册api接口的响应 api := E.Group("/api") api.POST("/login", myApi.Login) api.POST("/logout", myApi.Logout) // 注册api接口中管理员部分的响应 apiAdmin := api.Group("/admin", myMiddleware.AdminAccess) apiAdmin.POST("/new", myApiAdmin.New) apiAdmin.POST("/newResource", myApiAdmin.NewResource) apiAdmin.POST("/edit", myApiAdmin.Edit) apiAdmin.POST("/remove", myApiAdmin.Remove) apiAdmin.POST("/move", myApiAdmin.Move) apiAdmin.POST("/settings/save", myApiAdmin.SettingsSave) apiAdmin.POST("/settings/reset", myApiAdmin.SettingsReset) apiAdmin.POST("/restart", myApiAdmin.Restart) }
<filename>src/reducers/auth.js const INITIAL_STATE = {}; const authReducer = (state = INITIAL_STATE, action) => { switch (action.type) { case "DEMO": return state; default: return state; } }; export default authReducer;
#!/bin/sh # C# Petstore API client (.NET 3.5) ./bin/csharp-petstore.sh # C# Petstore API client with PropertyChanged ./bin/csharp-property-changed-petstore.sh # C# Petstore API client (v5.0 for .net standarnd 1.3+) ./bin/csharp-petstore-net-standard.sh # C# Petstore API client (.NET 4.0) ./bin/csharp-petstore-net-40.sh # C# Petstore API client (.NET 3.5) ./bin/csharp-petstore-net-35.sh
<gh_stars>0 /** * Module dependencies. */ import ValidationFailedError from './errors/validation-failed-error'; import asserts from 'validator.js-asserts'; import debugnyan from 'debugnyan'; import { Assert, Constraint, Validator } from 'validator.js'; /** * Create logger instance. */ const log = debugnyan('cs:validator'); /** * Add custom asserts. */ const Asserts = Assert.extend(asserts); /** * Validate data using constraints. */ function validate(data, constraints) { const validator = new Validator(); const errors = validator.validate(data || {}, new Constraint(constraints, { deepRequired: true })); if (errors !== true) { log.warn({ errors }, 'Validation failed'); throw new ValidationFailedError(errors); } } /** * Export `Assert` and `Constraint`. */ export { validate, Asserts as Assert, Constraint };
#!/usr/bin/env python # Note that this test takes about 20 seconds to run import time num_tests = 5 a = [] n = input() i = 0 while i < 10000: a.append(n) n = input() i = i + 1 def insertionSort(arr): i = 1 while i < len(arr): v = arr[i] p = i while 0 < p and v < arr[p - 1]: arr[p] = arr[p - 1] p = p - 1 arr[p] = v i = i + 1 b = [] total = 0 x = 1 while x <= num_tests: b = a[:] # passes by value instead of by reference which is the default start_time = time.time() insertionSort(b) time_taken = time.time() - start_time print "Test " + str(x) + \ ": Time taken to sort 10,000 random numbers using insertion sort: " + \ str(time_taken) + " seconds" total = total + time_taken x = x + 1 average = total / num_tests print "Average time taken: " + str(average) + " seconds"
/** * @file * * @brief Utilities for generating pseudorandom numbers. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef AER_RAND_H #define AER_RAND_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> /* ----- PUBLIC TYPES ----- */ /** * @brief Opaque type for a self-managed pseudorandom number generator. * * Use this with the functions prefixed with `AERRandGen...` * * @since 1.0.0 */ typedef void AERRandGen; /* ----- PUBLIC FUNCTIONS ----- */ /** * @brief Get a pseudorandom unsigned integer on the interval [0, 2^64) using * the automatically-seeded global generator. * * @return Pseudorandom unsigned integer. * * @since 1.0.0 * * @sa AERRandGenUInt */ uint64_t AERRandUInt(void); /** * @brief Get a pseudorandom unsigned integer on the interval [min, max) using * the automatically-seeded global generator. * * This function has been carefully designed to avoid introducing any * distribution-related bias. For faster but potentially biased generation, * use modulo. * * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom unsigned integer or `0` if unsuccessful. * * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandGenUIntRange */ uint64_t AERRandUIntRange(uint64_t min, uint64_t max); /** * @brief Get a pseudorandom signed integer on the interval [-2^63, 2^63) using * the automatically-seeded global generator. * * @return Pseudorandom signed integer. * * @since 1.0.0 * * @sa AERRandGenInt */ int64_t AERRandInt(void); /** * @brief Get a pseudorandom signed integer on the interval [min, max) using the * automatically-seeded global generator. * * This function has been carefully designed to avoid introducing any * distribution-related bias. For faster but potentially biased generation, * use modulo. * * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom signed integer or `0` if unsuccessful. * * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandGenIntRange */ int64_t AERRandIntRange(int64_t min, int64_t max); /** * @brief Get a pseudorandom floating-point value on the interval [0.0f, 1.0f) * using the automatically-seeded global generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @return Pseudorandom floating-point value. * * @since 1.0.0 * * @sa AERRandGenFloat */ float AERRandFloat(void); /** * @brief Get a pseudorandom floating-point value on the interval [min, max) * using the automatically-seeded global generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom floating-point value or `0.0f` if unsuccessful. * * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandGenFloatRange */ float AERRandFloatRange(float min, float max); /** * @brief Get a pseudorandom double floating-point value on the interval * [0.0, 1.0) using the automatically-seeded global generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @return Pseudorandom double floating-point value. * * @since 1.0.0 * * @sa AERRandGenDouble */ double AERRandDouble(void); /** * @brief Get a pseudorandom double floating-point value on the interval * [min, max) using the automatically-seeded global generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom double floating-point value or `0.0` if unsuccessful. * * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandGenDoubleRange */ double AERRandDoubleRange(double min, double max); /** * @brief Get a pseudorandom boolean using the automatically-seeded global * generator. * * @return Pseudorandom boolean. * * @since 1.0.0 * * @sa AERRandGenBool */ bool AERRandBool(void); /** * @brief Shuffle an array of arbitrary elements using the automatically-seeded * global generator. * * @param[in] elemSize Size of each buffer element in bytes. * @param[in] bufSize Size of buffer in elements. * @param[in,out] elemBuf Buffer of elements to shuffle. * * @throw ::AER_BAD_VAL if argument `elemSize` is `0`. * @throw ::AER_NULL_ARG if argument `elemBuf` is `NULL`. * * @since 1.4.0 * * @sa AERRandGenShuffle */ void AERRandShuffle(size_t elemSize, size_t bufSize, void* elemBuf); /** * @brief Allocate and initialize a new self-managed pseudorandom number * generator. * * When no longer needed, free this generator using AERRandGenFree. * * @param[in] seed Initial generator seed. * * @return Newly allocated generator. * * @since 1.0.0 * * @sa AERRandGenFree */ AERRandGen* AERRandGenNew(uint64_t seed); /** * @brief Free a self-managed pseudorandom number generator allocated using * AERRandGenNew. * * @param[in] gen Generator of interest. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 * * @sa AERRandGenNew */ void AERRandGenFree(AERRandGen* gen); /** * @brief Re-seed a self-managed pseudorandom number generator. * * @param[in] gen Generator of interest. * @param[in] seed New generator seed. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 */ void AERRandGenSeed(AERRandGen* gen, uint64_t seed); /** * @brief Get a pseudorandom unsigned integer on the interval [0, 2^64) using * a self-managed generator. * * @param[in] gen Generator of interest. * * @return Pseudorandom unsigned integer or `0` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 * * @sa AERRandUInt */ uint64_t AERRandGenUInt(AERRandGen* gen); /** * @brief Get a pseudorandom unsigned integer on the interval [min, max) using * a self-managed generator. * * This function has been carefully designed to avoid introducing any * distribution-related bias. For faster but potentially biased generation, * use modulo. * * @param[in] gen Generator of interest. * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom unsigned integer or `0` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandUIntRange */ uint64_t AERRandGenUIntRange(AERRandGen* gen, uint64_t min, uint64_t max); /** * @brief Get a pseudorandom signed integer on the interval [-2^63, 2^63) using * a self-managed generator. * * @param[in] gen Generator of interest. * * @return Pseudorandom signed integer or `0` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 * * @sa AERRandInt */ int64_t AERRandGenInt(AERRandGen* gen); /** * @brief Get a pseudorandom signed integer on the interval [min, max) using a * self-managed generator. * * This function has been carefully designed to avoid introducing any * distribution-related bias. For faster but potentially biased generation, * use modulo. * * @param[in] gen Generator of interest. * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom signed integer or `0` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandIntRange */ int64_t AERRandGenIntRange(AERRandGen* gen, int64_t min, int64_t max); /** * @brief Get a pseudorandom floating-point value on the interval [0.0f, 1.0f) * using a self-managed generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @param[in] gen Generator of interest. * * @return Pseudorandom floating-point value or `0.0f` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 * * @sa AERRandFloat */ float AERRandGenFloat(AERRandGen* gen); /** * @brief Get a pseudorandom floating-point value on the interval [min, max) * using a self-managed generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @param[in] gen Generator of interest. * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom floating-point value or `0.0f` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandFloatRange */ float AERRandGenFloatRange(AERRandGen* gen, float min, float max); /** * @brief Get a pseudorandom double floating-point value on the interval * [0.0, 1.0) using a self-managed generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @param[in] gen Generator of interest. * * @return Pseudorandom double floating-point value or `0.0` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 * * @sa AERRandDouble */ double AERRandGenDouble(AERRandGen* gen); /** * @brief Get a pseudorandom double floating-point value on the interval * [min, max) using a self-managed generator. * * @bug This function uses a method of obtaining floats from integers that is * now known to introduce slight distribution-related bias (see <a * href="https://hal.archives-ouvertes.fr/hal-02427338/file/fpnglib_iccs.pdf"> * *Generating Random Floating-Point Numbers by Dividing Integers: a Case Study* * by <NAME></a>). * This is unlikely to cause issues in the vast majority of usecases, but it * should be kept in mind. * * @param[in] gen Generator of interest. * @param[in] min Minimum possible value (inclusive). * @param[in] max Maximum possible value (exclusive). * * @return Pseudorandom double floating-point value or `0.0` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * @throw ::AER_BAD_VAL if argument `min` is greater than or equal to * argument `max`. * * @since 1.0.0 * * @sa AERRandDoubleRange */ double AERRandGenDoubleRange(AERRandGen* gen, double min, double max); /** * @brief Get a pseudorandom boolean using a self-managed generator. * * @param[in] gen Generator of interest. * * @return Pseudorandom boolean or `false` if unsuccessful. * * @throw ::AER_NULL_ARG if argument `gen` is `NULL`. * * @since 1.0.0 * * @sa AERRandBool */ bool AERRandGenBool(AERRandGen* gen); /** * @brief Shuffle an array of arbitrary elements using a self-managed generator. * * @param[in] gen Generator of interest. * @param[in] elemSize Size of each buffer element in bytes. * @param[in] bufSize Size of buffer in elements. * @param[in,out] elemBuf Buffer of elements to shuffle. * * @throw ::AER_BAD_VAL if argument `elemSize` is `0`. * @throw ::AER_NULL_ARG if either argument `gen` or `elemBuf` is `NULL`. * * @since 1.4.0 * * @sa AERRandShuffle */ void AERRandGenShuffle(AERRandGen* gen, size_t elemSize, size_t bufSize, void* elemBuf); #endif /* AER_RAND_H */
package com.bendoerr.saltedmocha.libsodium; import com.bendoerr.saltedmocha.CryptoException; import com.bendoerr.saltedmocha.Util; import com.bendoerr.saltedmocha.nacl.CryptoOneTimeAuth; import com.bendoerr.saltedmocha.nacl.CryptoSecretBox; import static com.bendoerr.saltedmocha.Util.checkedArrayCopy; import static com.bendoerr.saltedmocha.nacl.CryptoSecretBox.crypto_secretbox; import static com.bendoerr.saltedmocha.nacl.CryptoSecretBox.crypto_secretbox_open; import static org.bouncycastle.util.Arrays.concatenate; /** * <p>CryptoSecretBoxEasy class.</p> */ public class CryptoSecretBoxEasy { /** * Constant <code>crypto_secretbox_KEYBYTES=CryptoSecretBox.crypto_secretbox_KEYBYTES</code> */ public static final int crypto_secretbox_KEYBYTES = CryptoSecretBox.crypto_secretbox_KEYBYTES; /** * Constant <code>crypto_secretbox_MACBYTES=CryptoOneTimeAuth.crypto_onetimeauth_BYTES</code> */ public static final int crypto_secretbox_MACBYTES = CryptoOneTimeAuth.crypto_onetimeauth_BYTES; /** * Constant <code>crypto_secretbox_NONCEBYTES=CryptoSecretBox.crypto_secretbox_NONCEBYTES</code> */ public static final int crypto_secretbox_NONCEBYTES = CryptoSecretBox.crypto_secretbox_NONCEBYTES; private CryptoSecretBoxEasy() { } // int // crypto_secretbox_detached(unsigned char *c, unsigned char *mac, // const unsigned char *m, // unsigned long long mlen, const unsigned char *n, // const unsigned char *k) /** * <p>crypto_secretbox_detached.</p> * * @param c_out an array of byte. * @param mac_out an array of byte. * @param mac_out an array of byte. * @param m an array of byte. * @param n an array of byte. * @param k an array of byte. * @throws com.bendoerr.saltedmocha.CryptoException if any. */ public static void crypto_secretbox_detached(final byte[] c_out, final byte[] mac_out, final byte[] m, final byte[] n, final byte[] k) throws CryptoException { if (m.length > Util.MAX_ARRAY_SIZE - crypto_secretbox_MACBYTES) throw new CryptoException("m is too big"); byte[] tmp = crypto_secretbox(m, n, k); checkedArrayCopy(tmp, 0, mac_out, 0, crypto_secretbox_MACBYTES); checkedArrayCopy(tmp, crypto_secretbox_MACBYTES, c_out, 0, tmp.length - crypto_secretbox_MACBYTES); } // int // crypto_secretbox_easy(unsigned char *c, const unsigned char *m, // unsigned long long mlen, const unsigned char *n, // const unsigned char *k) /** * <p>crypto_secretbox_easy.</p> * * @param c_out an array of byte. * @param m an array of byte. * @param n an array of byte. * @param k an array of byte. * @throws com.bendoerr.saltedmocha.CryptoException if any. */ public static void crypto_secretbox_easy(final byte[] c_out, final byte[] m, final byte[] n, final byte[] k) throws CryptoException { if (m.length > Util.MAX_ARRAY_SIZE - crypto_secretbox_MACBYTES) throw new CryptoException("m is too big"); crypto_secretbox(c_out, m, n, k); } // int // crypto_secretbox_open_detached(unsigned char *m, const unsigned char *c, // const unsigned char *mac, // unsigned long long clen, // const unsigned char *n, // const unsigned char *k) /** * <p>crypto_secretbox_open_detached.</p> * * @param m_out an array of byte. * @param c an array of byte. * @param mac an array of byte. * @param n an array of byte. * @param k an array of byte. * @throws com.bendoerr.saltedmocha.CryptoException if any. */ public static void crypto_secretbox_open_detached(final byte[] m_out, final byte[] c, final byte[] mac, final byte[] n, final byte[] k) throws CryptoException { crypto_secretbox_open(m_out, concatenate(mac, c), n, k); } // int // crypto_secretbox_open_easy(unsigned char *m, const unsigned char *c, // unsigned long long clen, const unsigned char *n, // const unsigned char *k) /** * <p>crypto_secretbox_open_easy.</p> * * @param m_out an array of byte. * @param c an array of byte. * @param n an array of byte. * @param k an array of byte. * @throws com.bendoerr.saltedmocha.CryptoException if any. */ public static void crypto_secretbox_open_easy(final byte[] m_out, final byte[] c, final byte[] n, final byte[] k) throws CryptoException { crypto_secretbox_open(m_out, c, n, k); } }
<filename>src/public/carriers/packages/package-identifier.ts import type { Identifiers, IdentifiersPOJO } from "../../common"; /** * Identifies a package */ export interface PackageIdentifierPOJO { /** * The carrier tracking number */ trackingNumber?: string; /** * Your own identifiers for this package */ identifiers?: IdentifiersPOJO; } /** * Identifies a package */ export interface PackageIdentifier { /** * The carrier tracking number */ readonly trackingNumber: string; /** * Your own identifiers for this package */ readonly identifiers: Identifiers; }
/* * Copyright 2008 <NAME> for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ var m, re, b, i, obj; ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); RegExp.leftContext = "abc"; ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); re = /a+/; ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); m = re.exec(" aabaaa"); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); ok(m.index === 1, "m.index = " + m.index); ok(m.input === " aabaaa", "m.input = " + m.input); ok(m.length === 1, "m.length = " + m.length); ok(m[0] === "aa", "m[0] = " + m[0]); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "baaa", "RegExp.rightContext = " + RegExp.rightContext); m = re.exec(" aabaaa"); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); ok(m.index === 1, "m.index = " + m.index); ok(m.input === " aabaaa", "m.input = " + m.input); ok(m.length === 1, "m.length = " + m.length); ok(m[0] === "aa", "m[0] = " + m[0]); ok(m.propertyIsEnumerable("0"), "m.0 is not enumerable"); ok(m.propertyIsEnumerable("input"), "m.input is not enumerable"); ok(m.propertyIsEnumerable("index"), "m.index is not enumerable"); ok(m.propertyIsEnumerable("lastIndex"), "m.lastIndex is not enumerable"); ok(m.propertyIsEnumerable("length") === false, "m.length is not enumerable"); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "baaa", "RegExp.rightContext = " + RegExp.rightContext); m = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/.exec( "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); ok(m === null, "m is not null"); re = /a+/g; ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); m = re.exec(" aabaaa"); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); ok(m.index === 1, "m.index = " + m.index); ok(m.lastIndex == 3, "m.lastIndex = " + m.lastIndex); ok(m.input === " aabaaa", "m.input = " + m.input); ok(m.length === 1, "m.length = " + m.length); ok(m[0] === "aa", "m[0] = " + m[0]); m = re.exec(" aabaaa"); ok(re.lastIndex === 7, "re.lastIndex = " + re.lastIndex); ok(m.index === 4, "m.index = " + m.index); ok(m.input === " aabaaa", "m.input = " + m.input); ok(m.length === 1, "m.length = " + m.length); ok(m[0] === "aaa", "m[0] = " + m[0]); m = re.exec(" aabaaa"); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); ok(m === null, "m is not null"); re.exec(" a"); ok(re.lastIndex === 16, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "", "RegExp.rightContext = " + RegExp.rightContext); m = re.exec(" a"); ok(m === null, "m is not null"); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); m = re.exec(" a"); ok(re.lastIndex === 2, "re.lastIndex = " + re.lastIndex); m = re.exec(); ok(m === null, "m is not null"); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); m = /(a|b)+|(c)/.exec("aa"); ok(m[0] === "aa", "m[0] = " + m[0]); ok(m[1] === "a", "m[1] = " + m[1]); ok(m[2] === "", "m[2] = " + m[2]); b = re.test(" a "); ok(b === true, "re.test(' a ') returned " + b); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " ", "RegExp.rightContext = " + RegExp.rightContext); b = re.test(" a "); ok(b === false, "re.test(' a ') returned " + b); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " ", "RegExp.rightContext = " + RegExp.rightContext); re = /\[([^\[]+)\]/g; m = re.exec(" [test] "); ok(re.lastIndex === 7, "re.lastIndex = " + re.lastIndex); ok(m.index === 1, "m.index = " + m.index); ok(m.input === " [test] ", "m.input = " + m.input); ok(m.length === 2, "m.length = " + m.length); ok(m[0] === "[test]", "m[0] = " + m[0]); ok(m[1] === "test", "m[1] = " + m[1]); b = /a*/.test(); ok(b === true, "/a*/.test() returned " + b); ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "undefined", "RegExp.rightContext = " + RegExp.rightContext); b = /f/.test(); ok(b === true, "/f/.test() returned " + b); ok(RegExp.leftContext === "unde", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "ined", "RegExp.rightContext = " + RegExp.rightContext); b = /abc/.test(); ok(b === false, "/abc/.test() returned " + b); ok(RegExp.leftContext === "unde", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "ined", "RegExp.rightContext = " + RegExp.rightContext); m = "abcabc".match(re = /ca/); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 1, "m.length is not 1"); ok(m["0"] === "ca", "m[0] is not \"ca\""); ok(m.constructor === Array, "unexpected m.constructor"); ok(re.lastIndex === 4, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === "ab", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "bc", "RegExp.rightContext = " + RegExp.rightContext); m = "abcabc".match(/ab/); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 1, "m.length is not 1"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "cabc", "RegExp.rightContext = " + RegExp.rightContext); m = "abcabc".match(/ab/g); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(m["1"] === "ab", "m[1] is not \"ab\""); /* ok(m.input === "abcabc", "m.input = " + m.input); */ m = "abcabc".match(/Ab/g); ok(typeof(m) === "object", "typeof m is not object"); ok(m === null, "m is not null"); m = "abcabc".match(/Ab/gi); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(m["1"] === "ab", "m[1] is not \"ab\""); ok(RegExp.leftContext === "abc", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "c", "RegExp.rightContext = " + RegExp.rightContext); m = "aaabcabc".match(/a+b/g); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "aaab", "m[0] is not \"ab\""); ok(m["1"] === "ab", "m[1] is not \"ab\""); m = "aaa\\\\cabc".match(/\\/g); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "\\", "m[0] is not \"\\\""); ok(m["1"] === "\\", "m[1] is not \"\\\""); m = "abcabc".match(new RegExp("ab")); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 1, "m.length is not 1"); ok(m["0"] === "ab", "m[0] is not \"ab\""); m = "abcabc".match(new RegExp("ab","g")); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(m["1"] === "ab", "m[1] is not \"ab\""); ok(RegExp.leftContext === "abc", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "c", "RegExp.rightContext = " + RegExp.rightContext); m = "abcabc".match(new RegExp(/ab/g)); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(m["1"] === "ab", "m[1] is not \"ab\""); m = "abcabc".match(new RegExp("ab","g", "test")); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length is not 2"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(m["1"] === "ab", "m[1] is not \"ab\""); ok(m.index === 3, "m.index = " + m.index); ok(m.input === "abcabc", "m.input = " + m.input); ok(m.lastIndex === 5, "m.lastIndex = " + m.lastIndex); m = "abcabcg".match("ab", "g"); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 1, "m.length is not 1"); ok(m["0"] === "ab", "m[0] is not \"ab\""); ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "cabcg", "RegExp.rightContext = " + RegExp.rightContext); m = "abcabc".match(); ok(m === null, "m is not null"); ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "cabcg", "RegExp.rightContext = " + RegExp.rightContext); m = "abcabc".match(/(a)(b)cabc/); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 3, "m.length is not 3"); ok(m[0] === "abcabc", "m[0] is not \"abc\""); ok(m[1] === "a", "m[1] is not \"a\""); ok(m[2] === "b", "m[2] is not \"b\""); re = /(a)bcabc/; re.lastIndex = -3; m = "abcabc".match(re); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length = " + m.length + "expected 3"); ok(m[0] === "abcabc", "m[0] is not \"abc\""); ok(m[1] === "a", "m[1] is not \"a\""); ok(re.lastIndex === 6, "re.lastIndex = " + re.lastIndex); re = /(a)bcabc/; re.lastIndex = 2; m = "abcabcxxx".match(re); ok(typeof(m) === "object", "typeof m is not object"); ok(m.length === 2, "m.length = " + m.length + "expected 3"); ok(m[0] === "abcabc", "m[0] is not \"abc\""); ok(m[1] === "a", "m[1] is not \"a\""); ok(m.input === "abcabcxxx", "m.input = " + m.input); ok(re.lastIndex === 6, "re.lastIndex = " + re.lastIndex); r = "- [test] -".replace(re = /\[([^\[]+)\]/g, "success"); ok(r === "- success -", "r = " + r + " expected '- success -'"); ok(re.lastIndex === 8, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === "- ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " -", "RegExp.rightContext = " + RegExp.rightContext); r = "[test] [test]".replace(/\[([^\[]+)\]/g, "aa"); ok(r === "aa aa", "r = " + r + "aa aa"); ok(RegExp.leftContext === "[test] ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "", "RegExp.rightContext = " + RegExp.rightContext); r = "[test] [test]".replace(/\[([^\[]+)\]/, "aa"); ok(r === "aa [test]", "r = " + r + " expected 'aa [test]'"); r = "- [test] -".replace(/\[([^\[]+)\]/g); ok(r === "- undefined -", "r = " + r + " expected '- undefined -'"); r = "- [test] -".replace(/\[([^\[]+)\]/g, true); ok(r === "- true -", "r = " + r + " expected '- true -'"); r = "- [test] -".replace(/\[([^\[]+)\]/g, true, "test"); ok(r === "- true -", "r = " + r + " expected '- true -'"); ok(RegExp.leftContext === "- ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " -", "RegExp.rightContext = " + RegExp.rightContext); var tmp = 0; function replaceFunc1(m, off, str) { ok(arguments.length === 3, "arguments.length = " + arguments.length); switch(tmp) { case 0: ok(m === "[test1]", "m = " + m + " expected [test1]"); ok(off === 0, "off = " + off + " expected 0"); ok(RegExp.leftContext === "- ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " -", "RegExp.rightContext = " + RegExp.rightContext); break; case 1: ok(m === "[test2]", "m = " + m + " expected [test2]"); ok(off === 8, "off = " + off + " expected 8"); ok(RegExp.leftContext === "- ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " -", "RegExp.rightContext = " + RegExp.rightContext); break; default: ok(false, "unexpected call"); } ok(str === "[test1] [test2]", "str = " + arguments[3]); return "r" + tmp++; } r = "[test1] [test2]".replace(/\[[^\[]+\]/g, replaceFunc1); ok(r === "r0 r1", "r = " + r + " expected 'r0 r1'"); ok(RegExp.leftContext === "[test1] ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "", "RegExp.rightContext = " + RegExp.rightContext); tmp = 0; function replaceFunc2(m, subm, off, str) { ok(arguments.length === 4, "arguments.length = " + arguments.length); switch(tmp) { case 0: ok(subm === "test1", "subm = " + subm); ok(m === "[test1]", "m = " + m + " expected [test1]"); ok(off === 0, "off = " + off + " expected 0"); break; case 1: ok(subm === "test2", "subm = " + subm); ok(m === "[test2]", "m = " + m + " expected [test2]"); ok(off === 8, "off = " + off + " expected 8"); break; default: ok(false, "unexpected call"); } ok(str === "[test1] [test2]", "str = " + arguments[3]); return "r" + tmp++; } r = "[test1] [test2]".replace(/\[([^\[]+)\]/g, replaceFunc2); ok(r === "r0 r1", "r = '" + r + "' expected 'r0 r1'"); r = "$1,$2".replace(/(\$(\d))/g, "$$1-$1$2"); ok(r === "$1-$11,$1-$22", "r = '" + r + "' expected '$1-$11,$1-$22'"); ok(RegExp.leftContext === "$1,", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "", "RegExp.rightContext = " + RegExp.rightContext); r = "abc &1 123".replace(/(\&(\d))/g, "$&"); ok(r === "abc &1 123", "r = '" + r + "' expected 'abc &1 123'"); ok(RegExp.leftContext === "abc ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " 123", "RegExp.rightContext = " + RegExp.rightContext); r = "abc &1 123".replace(/(\&(\d))/g, "$'"); ok(r === "abc 123 123", "r = '" + r + "' expected 'abc 123 123'"); r = "abc &1 123".replace(/(\&(\d))/g, "$`"); ok(r === "abc abc 123", "r = '" + r + "' expected 'abc abc 123'"); r = "abc &1 123".replace(/(\&(\d))/g, "$3"); ok(r === "abc $3 123", "r = '" + r + "' expected 'abc $3 123'"); r = "abc &1 123".replace(/(\&(\d))/g, "$"); ok(r === "abc $ 123", "r = '" + r + "' expected 'abc $ 123'"); r = "abc &1 123".replace(/(\&(\d))/g, "$a"); ok(r === "abc $a 123", "r = '" + r + "' expected 'abc $a 123'"); r = "abc &1 123".replace(/(\&(\d))/g, "$11"); ok(r === "abc &11 123", "r = '" + r + "' expected 'abc &11 123'"); r = "abc &1 123".replace(/(\&(\d))/g, "$0"); ok(r === "abc $0 123", "r = '" + r + "' expected 'abc $0 123'"); /a/.test("a"); r = "1 2 3".replace("2", "$&"); ok(r === "1 $& 3", "r = '" + r + "' expected '1 $& 3'"); ok(RegExp.leftContext === "", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "", "RegExp.rightContext = " + RegExp.rightContext); r = "1 2 3".replace("2", "$'"); ok(r === "1 $' 3", "r = '" + r + "' expected '1 $' 3'"); r = "1,,2,3".split(/,+/g); ok(r.length === 3, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(r[2] === "3", "r[2] = " + r[2]); ok(RegExp.leftContext === "1,,2", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "3", "RegExp.rightContext = " + RegExp.rightContext); r = "1,,2,3".split(/,+/g, 2); ok(r.length === 2, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(RegExp.leftContext === "1,,2", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "3", "RegExp.rightContext = " + RegExp.rightContext); r = "1,,2,3".split(/,+/g, 1); ok(r.length === 1, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(RegExp.leftContext === "1", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "2,3", "RegExp.rightContext = " + RegExp.rightContext); r = "1,,2,3".split(/,+/); ok(r.length === 3, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(r[2] === "3", "r[2] = " + r[2]); r = "1,,2,".split(/,+/); ok(r.length === 2, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); re = /,+/; r = "1,,2,".split(re); ok(r.length === 2, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(re.lastIndex === 5, "re.lastIndex = " + re.lastIndex); re = /,+/g; r = "1,,2,".split(re); ok(r.length === 2, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(re.lastIndex === 5, "re.lastIndex = " + re.lastIndex); r = "1 12 \t3".split(re = /\s+/).join(";"); ok(r === "1;12;3", "r = " + r); ok(re.lastIndex === 6, "re.lastIndex = " + re.lastIndex); r = "123".split(re = /\s+/).join(";"); ok(r === "123", "r = " + r); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); r = "1ab2aab3".split(/(a+)b/); ok(r.length === 3, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(r[2] === "3", "r[2] = " + r[2]); r = "A<B>bold</B>and<CODE>coded</CODE>".split(/<(\/)?([^<>]+)>/) ; ok(r.length === 4, "r.length = " + r.length); /* another standard violation */ r = "1 12 \t3".split(re = /(\s)+/g).join(";"); ok(r === "1;12;3", "r = " + r); ok(re.lastIndex === 6, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === "1 12", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "3", "RegExp.rightContext = " + RegExp.rightContext); re = /,+/; re.lastIndex = 4; r = "1,,2,".split(re); ok(r.length === 2, "r.length = " + r.length); ok(r[0] === "1", "r[0] = " + r[0]); ok(r[1] === "2", "r[1] = " + r[1]); ok(re.lastIndex === 5, "re.lastIndex = " + re.lastIndex); re = /abc[^d]/g; ok(re.source === "abc[^d]", "re.source = '" + re.source + "', expected 'abc[^d]'"); re = /a\bc[^d]/g; ok(re.source === "a\\bc[^d]", "re.source = '" + re.source + "', expected 'a\\bc[^d]'"); re = /abc/; ok(re === RegExp(re), "re !== RegExp(re)"); re = RegExp("abc[^d]", "g"); ok(re.source === "abc[^d]", "re.source = '" + re.source + "', expected 'abc[^d]'"); re = /abc/; ok(re === RegExp(re, undefined), "re !== RegExp(re, undefined)"); re = /abc/; ok(re === RegExp(re, undefined, 1), "re !== RegExp(re, undefined, 1)"); re = /a/g; ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 0"); m = re.exec(" a "); ok(re.lastIndex === 2, "re.lastIndex = " + re.lastIndex + " expected 2"); ok(m.index === 1, "m.index = " + m.index + " expected 1"); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " ", "RegExp.rightContext = " + RegExp.rightContext); m = re.exec(" a "); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 0"); ok(m === null, "m = " + m + " expected null"); re.lastIndex = 2; m = re.exec(" a a "); ok(re.lastIndex === 4, "re.lastIndex = " + re.lastIndex + " expected 4"); ok(m.index === 3, "m.index = " + m.index + " expected 3"); re.lastIndex = "2"; ok(re.lastIndex === "2", "re.lastIndex = " + re.lastIndex + " expected '2'"); m = re.exec(" a a "); ok(re.lastIndex === 4, "re.lastIndex = " + re.lastIndex + " expected 4"); ok(m.index === 3, "m.index = " + m.index + " expected 3"); var li = 0; var obj = new Object(); obj.valueOf = function() { return li; }; re.lastIndex = obj; ok(re.lastIndex === obj, "re.lastIndex = " + re.lastIndex + " expected obj"); li = 2; m = re.exec(" a a "); ok(re.lastIndex === 2, "re.lastIndex = " + re.lastIndex + " expected 2"); ok(m.index === 1, "m.index = " + m.index + " expected 1"); re.lastIndex = 3; re.lastIndex = "test"; ok(re.lastIndex === "test", "re.lastIndex = " + re.lastIndex + " expected 'test'"); m = re.exec(" a a "); ok(re.lastIndex === 2 || re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 2 or 0"); if(re.lastIndex != 0) ok(m.index === 1, "m.index = " + m.index + " expected 1"); else ok(m === null, "m = " + m + " expected null"); re.lastIndex = 0; re.lastIndex = 3.9; ok(re.lastIndex === 3.9, "re.lastIndex = " + re.lastIndex + " expected 3.9"); m = re.exec(" a a "); ok(re.lastIndex === 4, "re.lastIndex = " + re.lastIndex + " expected 4"); ok(m.index === 3, "m.index = " + m.index + " expected 3"); obj.valueOf = function() { throw 0; } re.lastIndex = obj; ok(re.lastIndex === obj, "unexpected re.lastIndex"); m = re.exec(" a a "); ok(re.lastIndex === 2, "re.lastIndex = " + re.lastIndex + " expected 2"); ok(m.index === 1, "m.index = " + m.index + " expected 1"); re.lastIndex = -3; ok(re.lastIndex === -3, "re.lastIndex = " + re.lastIndex + " expected -3"); m = re.exec(" a a "); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 0"); ok(m === null, "m = " + m + " expected null"); re.lastIndex = -1; ok(re.lastIndex === -1, "re.lastIndex = " + re.lastIndex + " expected -1"); m = re.exec(" "); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 0"); ok(m === null, "m = " + m + " expected null"); re = /a/; re.lastIndex = -3; ok(re.lastIndex === -3, "re.lastIndex = " + re.lastIndex + " expected -3"); m = re.exec(" a a "); ok(re.lastIndex === 2, "re.lastIndex = " + re.lastIndex + " expected 0"); ok(m.index === 1, "m = " + m + " expected 1"); ok(RegExp.leftContext === " ", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === " a ", "RegExp.rightContext = " + RegExp.rightContext); re.lastIndex = -1; ok(re.lastIndex === -1, "re.lastIndex = " + re.lastIndex + " expected -1"); m = re.exec(" "); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex + " expected 0"); ok(m === null, "m = " + m + " expected null"); re = /aa/g; i = 'baacd'.search(re); ok(i === 1, "'baacd'.search(re) = " + i); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === "b", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "cd", "RegExp.rightContext = " + RegExp.rightContext); re.lastIndex = 2; i = 'baacdaa'.search(re); ok(i === 1, "'baacd'.search(re) = " + i); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); re = /aa/; i = 'baacd'.search(re); ok(i === 1, "'baacd'.search(re) = " + i); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); re.lastIndex = 2; i = 'baacdaa'.search(re); ok(i === 1, "'baacd'.search(re) = " + i); ok(re.lastIndex === 3, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === "b", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "cdaa", "RegExp.rightContext = " + RegExp.rightContext); re = /d/g; re.lastIndex = 1; i = 'abc'.search(re); ok(i === -1, "'abc'.search(/d/g) = " + i); ok(re.lastIndex === 0, "re.lastIndex = " + re.lastIndex); ok(RegExp.leftContext === "b", "RegExp.leftContext = " + RegExp.leftContext); ok(RegExp.rightContext === "cdaa", "RegExp.rightContext = " + RegExp.rightContext); i = 'abcdde'.search(/[df]/); ok(i === 3, "'abc'.search(/[df]/) = " + i); i = 'abcdde'.search(/[df]/, "a"); ok(i === 3, "'abc'.search(/[df]/) = " + i); i = 'abcdde'.search("[df]"); ok(i === 3, "'abc'.search(/d*/) = " + i); obj = { toString: function() { return "abc"; } }; i = String.prototype.search.call(obj, "b"); ok(i === 1, "String.prototype.seatch.apply(obj, 'b') = " + i); i = " undefined ".search(); ok(i === null, "' undefined '.search() = " + i); tmp = "=)".replace(/=/, "?"); ok(tmp === "?)", "'=)'.replace(/=/, '?') = " + tmp); tmp = " ".replace(/^\s*|\s*$/g, "y"); ok(tmp === "yy", '" ".replace(/^\s*|\s*$/g, "y") = ' + tmp); tmp = "xxx".replace(/^\s*|\s*$/g, ""); ok(tmp === "xxx", '"xxx".replace(/^\s*|\s*$/g, "y") = ' + tmp); tmp = "xxx".replace(/^\s*|\s*$/g, "y"); ok(tmp === "yxxxy", '"xxx".replace(/^\s*|\s*$/g, "y") = ' + tmp); tmp = "x/y".replace(/[/]/, "*"); ok(tmp === "x*y", '"x/y".replace(/[/]/, "*") = ' + tmp); tmp = "x/y".replace(/[xy/]/g, "*"); ok(tmp === "***", '"x/y".replace(/[xy/]/, "*") = ' + tmp); /(b)/.exec("abc"); ok(RegExp.$1 === "b", "RegExp.$1 = " + RegExp.$1); ok("$2" in RegExp, "RegExp.$2 doesn't exist"); ok(RegExp.$2 === "", "RegExp.$2 = " + RegExp.$2); ok(RegExp.$9 === "", "RegExp.$9 = " + RegExp.$9); ok(!("$10" in RegExp), "RegExp.$10 exists"); /(b)(b)(b)(b)(b)(b)(b)(b)(b)(b)(b)/.exec("abbbbbbbbbbbc"); ok(RegExp.$1 === "b", "RegExp.$1 = " + RegExp.$1); ok(RegExp.$2 === "b", "[2] RegExp.$2 = " + RegExp.$2); ok(RegExp.$9 === "b", "RegExp.$9 = " + RegExp.$9); ok(!("$10" in RegExp), "RegExp.$10 exists"); /(b)/.exec("abc"); ok(RegExp.$1 === "b", "RegExp.$1 = " + RegExp.$1); ok("$2" in RegExp, "RegExp.$2 doesn't exist"); ok(RegExp.$2 === "", "RegExp.$2 = " + RegExp.$2); ok(RegExp.$9 === "", "RegExp.$9 = " + RegExp.$9); ok(!("$10" in RegExp), "RegExp.$10 exists"); RegExp.$1 = "a"; ok(RegExp.$1 === "b", "RegExp.$1 = " + RegExp.$1); reportSuccess();
<reponame>KHYehor/UniversityPractice 'use strict'; const obj1 = {z: '0', x: '9'}; const array1 = ['a', 'b', 'c', 'd', 'e']; const array2 = ['1', '2', '3', '4', '5', '6', '7']; class map { constructor(object) { this.obj = object || {}; } unite(arr1, arr2) { arr1.forEach((el, id) => this.obj[el] = arr2[id]); console.log(this.obj); return this.obj } } const object = new map(); object.unite(array1, array2); const object2 = new map(obj1); object2.unite(array1, array2);