Skip to content

Commit

Permalink
Human Web Lite: simplify the pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Oct 13, 2021
1 parent dae8907 commit 3409ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/human-web-lite/sources/search-extractor.es
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class SearchExtractor {

const results = [];
[].forEach.call(rso.querySelectorAll('div.mnr-c.xpd.O9g5cc.uUPGi'), (x) => {
const url = (x.querySelector('a.C8nzq') || {}).href;
const url = (x.querySelector('a') || {}).href;
const title = (x.querySelector('a > div > div') || { textContent: '' }).textContent;
const age = (x.querySelector('.BmP5tf .wuQ4Ob') || { textContent: '' }).textContent.split('·')[0];
const missingKeyword = (x.querySelector('.TXwUJf a.fl') || { textContent: '' }).textContent;
Expand Down

0 comments on commit 3409ec8

Please sign in to comment.