Fix a website source that misses pages or content
Find out why a website scrape doesn't collect the pages or text you expect, and change one setting at a time until it does.
Check the symptom
The bot can't answer a question even though the answer is on your website, the source has fewer documents than expected, or the source has 0 documents. Go through the checks below in order, and change one setting at a time. Then you know what made the difference.
Check what the source collected
🔍 Start here:
- Go to EbbotGPT → Knowledge and open the data set from its card on the Data sets tab.
- On the Documents tab, search for a word from the missing page with Easy search.
- If the text is missing, open the Settings tab. Under Statuses, click Show status for URLs to see which pages were collected and which were skipped.
Check the address of the source
The most common cause is the address in the source. When pages that are clearly under your address are skipped with the reason "Does not match the base URL of this source", the address is written in the wrong format.
- Go to EbbotGPT → Knowledge and open the Sources tab. Click the three dots on the source's card and choose Edit source. The address is in URL.
- Write it without "https://" and without a slash at the end. For example, help.example.com/en works, and https://help.example.com/en/ makes the scraper skip your pages.
- Check Only scrape pages starting with URL. If it is on, only pages whose address starts with the full address are collected. Too narrow and pages are missed, too wide and the data set fills with pages you don't need.
- Click Save, and update only this source: on the data set's Settings tab, tick the source and click Update 1 sources.
Check the include and exclude settings
In URL path must include and URL must not include, you choose which pages the scraper should include or skip. Enter a part of the address, such as news/2022/, not the full address.
Check that no exclude rule matches the pages you are missing. To keep old pages out, for example old news, add their path as an exclude rule.
Check if your website blocks the scraper
If the source has 0 documents, or a run that used to work fails with error 403, your website probably blocks the scraper.
- Ask your web team or web agency if the website has bot protection, a firewall or rules in robots.txt.
- Allow the Ebbot scraper. The Scrape Site page in our developer docs lists the scraper's IP addresses and the robots.txt rule.
- Update the source once by hand.
Check how the page is built
Some text is hidden from the scraper because of how the page is built.
- Text is missing from pages that were collected: Disable Readability mode decides if the scraper only keeps the main text of the page. If the main text filter removes text you need, change the setting and update the source again.
- The page loads its content with JavaScript: the scraper can collect the page before the content has loaded. Enter the element that holds the main content in Query selectors to include, for example the main element of the page. The scraper then waits for it.
- Headers, footers or cookie banners come along: enter them in Query selectors to exclude, so they are removed from every page.
- Pages without links to them are missing: turn on Check sitemap.xml for pages, so the scraper also finds the pages in your sitemap.
To find the right selector, open the page in your browser, right-click the content and choose Inspect. An ID is written with #, for example #main, and a class with a dot, for example .main. The Scrape Site page has more examples.
Use Slowmode only as a last resort
Slowmode makes the scraper fetch one page at a time, so that bot protection is less likely to block it. It makes the run much slower. Turn it on only when you have tried all the checks above and the website still blocks the scraper. Change nothing else at the same time.
Contact our support
If you have checked the address, the include and exclude settings, the blocking and the selectors, and pages are still missing:
- Click Support in Ebbot App, or Ask our support at the top of this page.
- Describe the problem. The support bot passes it on to our support team if it can't solve it.
Include the name of the data set and the source, the address of a page that is missing, and what you have already changed.
💡 Pro-Tip
A selector for the main content of your pages in Query selectors to include is one of the easiest ways to get cleaner documents. It can cut the number of documents by half or more, and the bot stops quoting menus and footers.