{"id":17059965,"url":"https://github.com/nisaacson/load-url","last_synced_at":"2025-03-23T07:45:19.364Z","repository":{"id":66098703,"uuid":"9525494","full_name":"nisaacson/load-url","owner":"nisaacson","description":"Load a given url using curl and a path to a cookie jar file on disk","archived":false,"fork":false,"pushed_at":"2013-04-18T16:08:20.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T14:44:17.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nisaacson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-18T15:46:03.000Z","updated_at":"2014-02-04T00:49:44.000Z","dependencies_parsed_at":"2023-02-19T22:30:40.169Z","dependency_job_id":null,"html_url":"https://github.com/nisaacson/load-url","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisaacson%2Fload-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisaacson%2Fload-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisaacson%2Fload-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nisaacson%2Fload-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nisaacson","download_url":"https://codeload.github.com/nisaacson/load-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245072252,"owners_count":20556353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T10:35:50.420Z","updated_at":"2025-03-23T07:45:19.338Z","avatar_url":"https://github.com/nisaacson.png","language":"JavaScript","readme":"# Load URL\nLoad a given url using curl and a path to a cookie jar file on disk.\n\n# Installation\n\n```bash\nnpm install -S load-url\n```\n\n# Usage\n\n```js\nvar inspect = require('eyespect').inspector();\nvar loadURL = require('load-url')\nvar data = {\n  url: 'https://www.google.com',\n  cookiePath: '/path/to/curl/cookie/jar/file.txt',\n  args: ['--insecure'] // optional arguments to pass to the spawned curl command\n}\nloadURL(data, function (err, reply) {\n  if (err) {\n    console.log(err.stack)\n    delete err.stack\n    inspect(err, 'error loading url with curl')\n    return\n  }\n  var stdout = reply.stdout\n  var stderr = reply.stderr\n  inspect(stdout,'curl stdout')\n  inspect(stderr,'curl stdout')\n})\n```\n\n# Test\n\n```bash\n# install development dependencies\nnpm install\n# run tests\nnpm test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnisaacson%2Fload-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnisaacson%2Fload-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnisaacson%2Fload-url/lists"}