{"id":18247092,"url":"https://github.com/badbye/curl2r","last_synced_at":"2025-06-15T20:02:42.873Z","repository":{"id":66175976,"uuid":"82325818","full_name":"badbye/curl2r","owner":"badbye","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-26T03:28:42.000Z","size":6,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T14:40:42.157Z","etag":null,"topics":["curl","r"],"latest_commit_sha":null,"homepage":null,"language":"R","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/badbye.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-17T18:23:28.000Z","updated_at":"2020-05-26T03:28:44.000Z","dependencies_parsed_at":"2023-02-21T16:45:23.465Z","dependency_job_id":null,"html_url":"https://github.com/badbye/curl2r","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/badbye%2Fcurl2r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badbye%2Fcurl2r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badbye%2Fcurl2r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badbye%2Fcurl2r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badbye","download_url":"https://codeload.github.com/badbye/curl2r/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247194034,"owners_count":20899417,"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":["curl","r"],"created_at":"2024-11-05T09:29:02.045Z","updated_at":"2025-04-04T14:31:27.558Z","avatar_url":"https://github.com/badbye.png","language":"R","readme":"# curl2r\n\n\n\n## Installation\n\n```r\ndevtools::install_github('badbye/curl2r')\n```\n\n## Usage\n\n- Move script to environment\n\n```bash\ncp `Rscript -e \"cat(system.file('bin/curl2r', package = 'curl2r'))\"` /usr/local/bin\n```\n\nLet's go!\n\n```bash\ncurl2r curl 'https://www.baidu.com/' -H 'Pragma: no-cache' -H 'DNT: 1' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,de;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: no-cache' -H 'Cookie: BAIDUID=00D3E14431D28C9DCBA3550ACF3380B6:FG=1; BIDUPSID=00D3E12121D41B9DCBA3850BCF3380B6; PSTM=1487356509; BD_HOME=0; H_PS_PSSID=22085_1445_21112_19560_17001_22098; BD_UPN=127653; __bsi=17301350281280863238_11_0_I_R_5_0733_C02F_N_I_I_0' -H 'Connection: keep-alive' --compressed\n```\n\n## Work with other Tools\n\nChrome + [CurlWget](https://chrome.google.com/webstore/detail/curlwget/jmocjfidanebdlinpbcdkcmgdifblncg) + [curl2r](https://github.com/badbye/curl2r)\n\n1. Use `CurlWget` to get the curl command.\n2. Use `curl2r` to convert to R command.\n\nRead this blog [爬虫利器](http://yalei.name/2016/11/%E7%88%AC%E8%99%AB%E5%88%A9%E5%99%A8) to learn more.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadbye%2Fcurl2r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadbye%2Fcurl2r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadbye%2Fcurl2r/lists"}