File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 16
16
use fivefilters \Readability \ParseException ;
17
17
use League \Uri \Exceptions \SyntaxError ;
18
18
use Psr \Log \LoggerInterface ;
19
+ use OCA \News \Config \FetcherConfig ;
19
20
20
21
class Scraper implements IScraper
21
22
{
@@ -37,7 +38,7 @@ public function __construct(LoggerInterface $logger)
37
38
CURLOPT_RETURNTRANSFER => true , // return web page
38
39
CURLOPT_HEADER => false , // do not return headers
39
40
CURLOPT_FOLLOWLOCATION => true , // follow redirects
40
- CURLOPT_USERAGENT => " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 " , // who am i
41
+ CURLOPT_USERAGENT => FetcherConfig:: DEFAULT_USER_AGENT , // who am i
41
42
CURLOPT_AUTOREFERER => true , // set referer on redirect
42
43
CURLOPT_CONNECTTIMEOUT => 120 , // timeout on connect
43
44
CURLOPT_TIMEOUT => 120 , // timeout on response
You can’t perform that action at this time.
0 commit comments