-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.1 Release #76
v2.1 Release #76
Conversation
mrWh1te
commented
Sep 10, 2020
•
edited
Loading
edited
- review, clean, polish
- update docs for v2.1 this PR v2.1.0 botmation-docs#20
- release npm v2.1.0
- not needed, but reads better
Codecov Report
@@ Coverage Diff @@
## master #76 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 27 27
Lines 633 633
Branches 165 166 +1
=========================================
Hits 633 633
Continue to review full report at Codecov.
|
- 2nd param is optional will fallback value 2500 (2.5seconds)
- linkedin differntiates between posts and articles by a single user, so what the function has been targetting is actually user posts, not user articles
- while working on docs, making small improvements
- 2 new botaction types - slight copy polish
- includes scrapers and abort botactions - includes new helpers - tested locally with separate project against /dist
tested locally in a separate project against the import puppeteer from 'puppeteer'
import { pipe, $, goTo, map, log } from 'botmation'
(async() => {
let browser: puppeteer.Browser
browser = await puppeteer.launch({headless: false})
const pages = await browser.pages()
const page = pages.length === 0 ? await browser.newPage() : pages[0]
await pipe()(
goTo('https://google.com'),
$('title'),
map(cheerioEl => cheerioEl('title').text()),
log('Webpage Title')
)(page)
})() Console:
|
- might ignore webpack build from code analysis
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |