GithubHelp home page GithubHelp logo

phakphumv / fastwork-commission-table Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 19.96 MB

ตารางวิเคราะห์ค่าบริการของ Fastwork

Jupyter Notebook 100.00%
commission fastwork fee commission-fee

fastwork-commission-table's People

Contributors

phakphumv avatar

Stargazers

 avatar

Watchers

 avatar

fastwork-commission-table's Issues

New scrapping approach : Retrieve product cards via graphQL

Sample of CURL

curl 'https://f24luz3xrm-dsn.algolia.net/1/indexes/th_prod_products/query?x-algolia-agent=Algolia%20for%20JavaScript%20(3.35.1)%3B%20Browser&x-algolia-application-id=F24LUZ3XRM&x-algolia-api-key=a639c2213baa3a66e57cee665d7e17a6' --compressed -X POST -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'content-type: application/x-www-form-urlencoded' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' --data-raw '{"params":"attributesToRetrieve=%5B%22*%22%5D&facets=%5B%22subcategory.title%22%2C%22subcategory.slug%22%2C%22base_price%22%2C%22user.first_name%22%2C%22tags%22%5D&filters=(subcategory.slug%3A%20it-project-management)&hitsPerPage=40&page=0&query="}'

Convert to Python

import requests

headers = {
    'Accept': 'application/json',
    'Accept-Language': 'en-US,en;q=0.5',
    # 'Accept-Encoding': 'gzip, deflate, br',
    'content-type': 'application/x-www-form-urlencoded',
    'Connection': 'keep-alive',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'cross-site',
}

data = '{"params":"attributesToRetrieve=%5B%22*%22%5D&facets=%5B%22subcategory.title%22%2C%22subcategory.slug%22%2C%22base_price%22%2C%22user.first_name%22%2C%22tags%22%5D&filters=(subcategory.slug%3A%20it-project-management)&hitsPerPage=40&page=0&query="}'

response = requests.post(
    'https://f24luz3xrm-dsn.algolia.net/1/indexes/th_prod_products/query?x-algolia-agent=Algolia%20for%20JavaScript%20(3.35.1)%3B%20Browser&x-algolia-application-id=F24LUZ3XRM&x-algolia-api-key=a639c2213baa3a66e57cee665d7e17a6',
    headers=headers,
    data=data,
)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.