@crawlee/utils 4.0.0-beta.278 → 4.0.0-beta.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,7 @@ const extractUrlsOptionsSchema = z.strictObject({
20
20
  */
21
21
  export async function downloadListOfUrls(options) {
22
22
  const { url, encoding, urlRegExp, proxyUrl, httpClient } = parseArgument(options, downloadListOfUrlsOptionsSchema);
23
- // Try to detect wrong urls and fix them. Currently, detects only sharing url instead of csv download one.
24
- const match = /^(https:\/\/docs\.google\.com\/spreadsheets\/d\/(?:\w|-)+)\/?/.exec(url);
25
- let fixedUrl = url;
26
- if (match) {
27
- fixedUrl = `${match[1]}/gviz/tq?tqx=out:csv`;
28
- }
29
- const response = await httpClient.sendRequest(new Request(fixedUrl, { method: 'GET' }), {
23
+ const response = await httpClient.sendRequest(new Request(url, { method: 'GET' }), {
30
24
  proxyUrl,
31
25
  });
32
26
  const string = new TextDecoder(encoding).decode(new Uint8Array(await response.arrayBuffer()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/utils",
3
- "version": "4.0.0-beta.278",
3
+ "version": "4.0.0-beta.279",
4
4
  "description": "A set of shared utilities that can be used by crawlers",
5
5
  "engines": {
6
6
  "node": ">=22.13.0"
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@apify/validations": "^1.1.4",
46
- "@crawlee/http-client": "4.0.0-beta.278",
47
- "@crawlee/types": "4.0.0-beta.278",
46
+ "@crawlee/http-client": "4.0.0-beta.279",
47
+ "@crawlee/types": "4.0.0-beta.279",
48
48
  "@types/sax": "^1.2.7",
49
49
  "cheerio": "^1.2.0",
50
50
  "domhandler": "^6.0.1",
@@ -63,5 +63,5 @@
63
63
  }
64
64
  }
65
65
  },
66
- "gitHead": "745f27ebf5c8307d949416c9c884ab941eef1559"
66
+ "gitHead": "c48476d4a812b8c65f3316979a8eb59f17975a24"
67
67
  }