Skip to main content

Api for getting data from dane.gov.pl

Project description

danegovpl

Tool for getting data from dane.gov.pl

Installation

pip install fakexy

Usage

fakexy <URL> <COUNT>

outputs json in each line.

fakexy has aggressive cloudflare protection so browser might be necessary to solve captchas. You can then use --browser option to get cookies from browser or pass them directly with --header. You can also use --wait to wait in between requests, although cloudflare seems to trigger only after time of inactivity.

fakexy 'https://www.fakexy.com/uk-fake-address-generator-south-humberside' 10 --browser firefox --wait 0.8

fakexy 'https://www.fakexy.com/uk-fake-address-generator-south-humberside' 10 -w 0.2 -H 'Cookie: cf_clearance=LybymVQ3ndsXXwa8Q7fkMWvIEfdr6vzkuZnXVmOnhSI-1753001875-1.2.1.1-8Q.LhRHXQV4EhrUx6j3BvZ7B8AIMjJ2EpdwcNcNToLnOTIVIoaJ1aaKkI4c4Q91.88xR0cyndUbGTuJb2XpjQnBegVi0dekwpfIeo5GbN8PKUzpCvDc9z57yaupYVegaiYVPUn7ONOue5d.ZemaHTR73xGUZYQdRyg3pzGX_pE8_6KfB_XjhAI4vIOClihjXn33bS4dDsE_.Pyd2Kwsb7Pfa3EvAR3Ulw1SZDAqBsfFwQF6NXX7WxwhkqyPPXKoT' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0'

The tool supports all generators on site as long as they are passed by url.

fakexy 'https://www.fakexy.com/uk-fake-address-generator-south-humberside' 1
{
  "street": "Forest Rd",
  "city": "Loughborough",
  "region": "Leicestershire",
  "zipcode": "LE11 3HU",
  "phone": "01509 214624",
  "country": "United Kingdom",
  "latitude": "52.762695",
  "longitude": "-1.221896",
  "person": {
    "name": "Isabella Martin",
    "gender": "female",
    "birthday": "1993-01-31",
    "ssn": "ZZ 06 48 57 T"
  },
  "creditcard": {
    "brand": "Mastercard",
    "number": "5578297755756643",
    "expire": "2028/2",
    "cvv": "520"
  }
}
fakexy 'https://www.fakexy.com/random-animal-generator' 1
{
  "name": "Beaver",
  "image": "https://www.fakexy.com/random-animal-generator"
}
fakexy 'https://www.fakexy.com/us-fake-name-generator-mi' 1
{
  "name": "Dr. Georgiana Berge",
  "gender": "female",
  "birthday": "1991-09-01",
  "ssn": "377-37-6204",
  "address": {
    "street": "5388 Lapeer Rd",
    "city": "Kimball",
    "region": "Michigan",
    "zipcode": "48074",
    "phone": "(810) 987-6390",
    "country": "United States",
    "latitude": "42.98765",
    "longitude": "-82.539308"
  },
  "creditcard": {
    "brand": "Mastercard",
    "number": "5421293142231977",
    "expire": "2028/1",
    "cvv": "361"
  }
}
fakexy 'https://www.fakexy.com/fake-creditcard-generator-visa' 1
{
  "brand": "Visa",
  "number": "4485995438410356",
  "expire": "2030/6",
  "cvv": "660"
}
fakexy 'https://www.fakexy.com/fake-zipcode-generator-us' 1
{
  "zipcode": "74136",
  "abbrev": "OK",
  "city": "Tulsa"
}
fakexy 'https://www.fakexy.com/fake-phonenumber-generator-us' 1
{
  "phone": "(512) 339-9922",
  "abbrev": "TX",
  "city": "Austin"
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

danegovpl-0.0.1.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

danegovpl-0.0.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file danegovpl-0.0.1.tar.gz.

File metadata

  • Download URL: danegovpl-0.0.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for danegovpl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 edb0a10562706c62d1041e88670c4ac02cee9542f11dd7fe49adf39f8fa1ce2b
MD5 c4cd75196f13973fbcc1b89e5a83bfa2
BLAKE2b-256 f008f692d6f5bffa5e171d9d19c3cb567d3cbc9363b755d6299b7064d27985c6

See more details on using hashes here.

File details

Details for the file danegovpl-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: danegovpl-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for danegovpl-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b08dc15dc2ca3e1385189e1f92000eeceb55fd10368ae90dcb46b65190590ada
MD5 1abead234df46bb791c99cd1a52b00fb
BLAKE2b-256 9100c9eb5876b023166982f120bd7b65db932151671a9d180e9319a422fb074b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page