Package Details: curl-impersonate 1:1.2.1-2

Git Clone URL: https://aur.archlinux.org/curl-impersonate.git (read-only, click to copy)
Package Base: curl-impersonate
Description: A special compilation of curl that makes it impersonate Firefox, Crome and other browsers. Includes libcurl.
Upstream URL: https://github.com/lexiforest/curl-impersonate
Keywords: curl https scraping security ssl tls
Licenses: MIT
Conflicts: curl-impersonate-bin, curl-impersonate-chrome, curl-impersonate-firefox, libcurl-impersonate-bin
Provides: curl-impersonate-chrome, curl-impersonate-firefox, libcurl-impersonate, libcurl-impersonate-chrome, libcurl-impersonate-firefox
Replaces: curl-impersonate-chrome, curl-impersonate-firefox
Submitter: mattf
Maintainer: mattf
Last Packager: mattf
Votes: 7
Popularity: 2.37
First Submitted: 2025-05-08 09:26 (UTC)
Last Updated: 2025-08-23 09:03 (UTC)

Required by (3)

Sources (1)

Latest Comments

1 2 Next › Last »

CVI2 commented on 2025-08-23 08:52 (UTC)

Yeah I changed the cpp version myself. Does this also require gcc14 specifically or why isn't gcc from extra repo used?

utanerime commented on 2025-08-23 07:43 (UTC) (edited on 2025-08-23 16:25 (UTC) by utanerime)

Got a build error while in prepare():

In file included from /usr/include/gtest/gtest-message.h:57,
         /usr/include/gtest/gtest-assertion-result.h:46,
         /usr/include/gtest/gtest.h:63,
         ares-test.h:39,
         ares-test-ns.cc:26:
/usr/include/gtest/internal/gtest-port.h:273:2: Error:#error C++ versions less than C++17 are not supported.
  273 | #error C++ versions less than C++17 are not supported.
      |  ^~~~~
In file included from /usr/include/gtest/gtest.h:67:
/usr/include/gtest/gtest-param-test.h:483:56: Error:missing template arguments before ‘(’ token
  483 |           typename StdFunction = decltype(std::function(std::declval<Func>()))>
      |                                                        ^
/usr/include/gtest/gtest-param-test.h:493:56: Error:missing template arguments before ‘(’ token
  493 |           typename StdFunction = decltype(std::function(std::declval<Func>()))>
      | 

Not sure if it is an upstream error or just have to change the c++ version by myself.

Update: problem solved after the latest commit. Thanks for maintaining this package!

crabvk commented on 2025-08-11 07:44 (UTC) (edited on 2025-08-11 07:45 (UTC) by crabvk)

This package is conflicting with curl now.

error: failed to commit transaction (conflicting files)
curl-impersonate: /usr/bin/wcurl exists in filesystem (owned by curl)

dllud commented on 2025-05-20 01:08 (UTC)

@patlefort python-curl-cffi as of version 0.11.1-1 now links to libcurl-impersonate.so. Just update it and things will work again.

patlefort commented on 2025-05-19 17:56 (UTC)

python-curl-cffi is not able to link because it expect a libcurl-impersonate-chrome.so. What is the correct way to link to this library?

dllud commented on 2025-05-18 21:22 (UTC)

@mattf you must take care to reset pkgrel back to 1 whenever you update the pkgver. Now it's too late (pkgrel should not go back), but please remember to reset it next time.

mattf commented on 2025-05-18 17:11 (UTC)

@dreieck I shold have fixed most of what you've reported. Thanks for letting me know.

dreieck commented on 2025-05-14 10:58 (UTC)

Ahoj,

you need to install the license text into /usr/share/licenses/${pkgname}/:

curl-impersonate E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/curl-impersonate/ or switching to common license identifiers. Found 0/1 required license files.

Also, there are broken symlinks:

curl-impersonate E: Symlink (usr/lib/curl-impersonate-chrome.so) points to non-existing /usr/lib/curl-impersonate.so.4.8.0
curl-impersonate E: Symlink (usr/lib/curl-impersonate-chrome.so.4) points to non-existing /usr/lib/curl-impersonate.so.4.8.0

(I checked after installation: /usr/lib/curl-impersonate-chrome.so and /usr/lib/curl-impersonate-chrome.so.4 are indeed broken.)

namcap reports on missing dependencies:

curl-impersonate E: Dependency zstd detected and not included (libraries ['usr/lib/libzstd.so.1'] needed in files ['usr/lib/libcurl-impersonate.so.4.8.0', 'usr/bin/curl-impersonate'])
curl-impersonate E: Dependency libidn2 detected and not included (libraries ['usr/lib/libidn2.so.0'] needed in files ['usr/lib/libcurl-impersonate.so.4.8.0', 'usr/bin/curl-impersonate'])
curl-impersonate E: Dependency rtmpdump detected and not included (libraries ['usr/lib/librtmp.so.1'] needed in files ['usr/lib/libcurl-impersonate.so.4.8.0', 'usr/bin/curl-impersonate'])

Regards and thanks for maintaining!

dreieck commented on 2025-05-14 10:55 (UTC)

Please make the downloaded source filename version specific.
e.g., change the source entry to:
"curl-impersonate-${pkgver}.tar.gz::https://github.com/lexiforest/curl-impersonate/archive/refs/tags/v${pkgver}.tar.gz"

Reason: Otherwise makepkg still finds the old file, and checksum verification fails.

Regards!

dreieck commented on 2025-05-14 10:54 (UTC)

This package downloads stuff in build(). This should not happen.
If you cannot make this download happening through the source array, try to move it to prepare() so that build() can run in an offline environment:

==> Starting build()...
[...]
-- Installing: /var/cache/makepkg/build/curl-impersonate/src/curl-impersonate-1.0.0rc2/build/brotli-1.1.0/out/installed/lib/pkgconfig/libbrotlienc.pc
make[1]: Leaving directory '/var/cache/makepkg/build/curl-impersonate/src/curl-impersonate-1.0.0rc2/build/brotli-1.1.0/out'
curl -L https://github.com/google/boringssl/archive/673e61fc215b178a90c0e67858bbf162c8158993.zip \
    -o boringssl-673e61fc215b178a90c0e67858bbf162c8158993.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 48.3M    0 48.3M    0     0  3389k      0 --:--:--  0:00:14 --:--:-- 6344k
unzip -q -o boringssl-673e61fc215b178a90c0e67858bbf162c8158993.zip
# mv boringssl boringssl-673e61fc215b178a90c0e67858bbf162c8158993
cd boringssl-673e61fc215b178a90c0e67858bbf162c8158993/
for p in /var/cache/makepkg/build/curl-impersonate/src/curl-impersonate-1.0.0rc2/build/../patches/boringssl.patch; do patch -p1 < $p; done
[...]

Regards and thanks for the package!