# crawler-request-undefined-message-gone

> HTTP request module customized for crawlers.

Latest version **1.2.2** (published 2023-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install crawler-request-undefined-message-gone
pnpm add crawler-request-undefined-message-gone
yarn add crawler-request-undefined-message-gone
bun add crawler-request-undefined-message-gone
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2023-06-05 |
| First published | 2023-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.8.1 |
| Dependencies | 7 |
| Unpacked size | 25.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mehmet Kozan |
| Maintainers | mo375 |
| Keywords | crawler, request, http, pdf-crawler, pdf2text, pdf-to-text, pdf2json, axios, pdf, pdf-parser, html-to-text |

## Links

- npm: https://www.npmjs.com/package/crawler-request-undefined-message-gone
- Repository: https://gitlab.com/autokent/crawler-request
- Issues: https://gitlab.com/autokent/crawler-request/issues
- npm.io page: https://npm.io/package/crawler-request-undefined-message-gone

## Dependencies (7)

- [axios](https://npm.io/package/axios.md) ^0.17.1
- [file-type](https://npm.io/package/file-type.md) ^7.4.0
- [pdf-parse](https://npm.io/package/pdf-parse.md) ^1.0.5
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.19
- [content-type](https://npm.io/package/content-type.md) ^1.0.4
- [html-to-text](https://npm.io/package/html-to-text.md) ^3.3.0
- [pdf-parse-tt-message-gone](https://npm.io/package/pdf-parse-tt-message-gone.md) ^1.1.2

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2023-06-05

## README

# crawler-request

**HTTP request module customized for crawlers.**

[![version](https://img.shields.io/npm/v/crawler-request.svg)](https://www.npmjs.org/package/crawler-request)
[![downloads](https://img.shields.io/npm/dt/crawler-request.svg)](https://www.npmjs.org/package/crawler-request)
[![node](https://img.shields.io/node/v/crawler-request.svg)](https://nodejs.org/)
[![status](https://gitlab.com/autokent/crawler-request/badges/master/pipeline.svg)](https://gitlab.com/autokent/crawler-request/pipelines)

## Installation
`npm install crawler-request`

## Usage

### Simple Request
```js
const crawler = require('crawler-request');

crawler("https://stackoverflow.com/").then(function(response){
    // handle response
    console.log(response.text.lenght);
});
```

### PDF Parse
```js
const crawler = require('crawler-request');

crawler("http://careers.stackoverflow.com/stack_overflow_careers.pdf").then(function(response){
    // handle response
    console.log(response.text.lenght);
});
```

### Extend
```js
const crawler = require('crawler-request');

function response_text_size(response){
    response["size"] = response.text.length;
    return response;
}

crawler("https://stackoverflow.com/",response_text_size).then(function(response){
    // handle response
	console.log(response.size);
});
```

## Test
`mocha` or `npm test`

Check [test folder](https://gitlab.com/autokent/crawler-request/tree/master/test) and [quickstart.js](https://gitlab.com/autokent/crawler-request/blob/master/QUICKSTART.js) for extra usages.

## Support
I use this package actively myself, so it has my top priority. You can chat on WhatsApp about any infos, ideas and suggestions.

[![WhatsApp](https://img.shields.io/badge/style-chat-green.svg?style=flat&label=whatsapp)](https://api.whatsapp.com/send?phone=905063042480&text=Hi%2C%0ALet%27s%20talk%20about%20crawler-request)

### Submitting an Issue
If you find a bug or a mistake, you can help by submitting an issue to [GitLab Repository](https://gitlab.com/autokent/crawler-request/issues)

### Creating a Merge Request
GitLab calls it merge request instead of pull request.  

* [A Guide for First-Timers](https://about.gitlab.com/2016/06/16/fearless-contribution-a-guide-for-first-timers/)
* [How to create a merge request](https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html)
* Check [Contributing Guide](https://gitlab.com/autokent/crawler-request/blob/master/CONTRIBUTING.md) 

## License
[MIT licensed](https://gitlab.com/autokent/crawler-request/blob/master/LICENSE) and all it's dependencies are MIT or BSD licensed.

---
_Source: https://npm.io/package/crawler-request-undefined-message-gone · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
