Tags
payload, err := session.GenerateDataDomeTags(ctx, &hyper.DataDomeTagsInput{
UserAgent: "", // Your chrome useragent
Cid: "", // Your current datadome cookie
Ddk: "", // sitekey, static for each site. parse it from the /js/ payload request from browser
Referer: "", // The referer visible as the referer header in the payload POST
Type: "", // First time 'ch', second time 'le'
Language: "", // The first language of your accept-language header, defaults to "en-US"
IP: "", // The IP that is used to post the sensor data to the target site. You can use /ip to get the IP from a connection. If you are not using proxies, this will be the IPv4 address of your pc.
})
if err != nil {
// Handle the error
}
// Use the payload to POST to /jspayload = hyper_session.generate_tags_payload(hyper_sdk.DataDomeTagsInput(
user_agent=USER_AGENT, # Your chrome UserAgent
cid=cid, # Your current datadome cookie
ddk=ddk, # sitekey, static for each site. parse it from the /js/ payload request from browser
referer=referer, # The referer visible as the referer header in the payload POST
tags_type=tags_type, # First time 'ch', second time 'le'
ip=ip, # The IP that is used to post the sensor data to the target site. You can use /ip to get the IP from a connection. If you are not using proxies, this will be the IPv4 address of your pc.
accept_language=accept_language# The accept language header that you use
))
# Use the payload to POST to /js{
"status": 200,
"cookie": "datadome=L7HH_UaWyA17TZFa7FNKxtIE9cReX~6bpf~E5A5IetWsibg0KwHgedPMPHee40cm4VqY9r3Yr6ZOCuWL17WB71PDE92lXdBIyyl3M2SZyhOl~7rmkK_XxE0O19hB4q0o; Max-Age=31536000; Domain=.vinted.fr; Path=/; Secure; SameSite=Lax"
}Last updated

